SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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 attempted to create my first Custom Ribbon action to allow users to sort list items. But I failed miserably. the Action wont show in my ribbon at all and I am having trouble finding out what is wrong. I created an empty element and stuck the following code inside.

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="">

          <Button Id="Ribbon.Library.Share.NewRibbonButton"
            LabelText="Reorder Videos"
            TemplateAlias="o2" />
          CommandAction="{SiteUrl}/_layouts/Reorder.aspx?List={ListId}" />

share|improve this question

Have a look at Chris O'Brien's samples and his excellent series of posts on developing Ribbon UI:

Samples Series first post

share|improve this answer
thanks for the responses! I found this link was the most helpful. – Tha Media Guy Mar 16 '12 at 16:35

Title is required attribute in CustomAction.

share|improve this answer

I used this article to add an Order Column to my List and add the action to my content type for the list item. This is working now.

Next I am trying to Sort by this column in Code using Visual Studio and a CAML query. Although when Using U2U CAML Builder it wont allow this column to be picked. It is a hidden internal column. Has anyone had success doing this??


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.