SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for the location of SharePoint ribbon XML for List Views. I'm just curious to see how Microsoft has coded it. However, I don't know the location of the xml file. Could someone put me in the right direction?


share|improve this question
up vote 5 down vote accepted

All the ribbon definitions are stored in this file:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML

Action JS code for most of these ribbon elements you can find here:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SP.Ribbon.debug.js

Actions for rich text editor ribbon are stored here:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SP.UI.Rte.debug.js

share|improve this answer
+1 for JavaScript code! Thanks dude! – harsimranb Jun 2 '12 at 14:58
Can not find there SPD created Custom Action Buttons. Is there separate folder/files for those? – przemo_li Dec 10 '14 at 12:02
The ribbon buttons that SPD creates are likely stored somewhere in database. You can fetch them via API. Get your SPList object first, and then explore UserCustomActions property. This can be done e.g. via PowerShell. For more details, please ask a separate question. – Andrey Markeev Dec 21 '14 at 1:17

Copy the following XML into Feature's Elements.xml and try to play with params. The location is CommandUI.Ribbon.ListView

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="">
           Alt="Show HelloWorld Alert"
           LabelText="Hello World"
         CommandAction="javascript:alert('Hello World');" />

Location of Ribbon XML file is :

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.