Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>Ribbon.Items.New.Controls._children</p> </blockquote> <p>According to <a href="http://msdn.microsoft.com/en-us/library/ee537543.aspx" rel="noreferrer">MSDN</a>, simply there is no such Ribbon location :)</p> <p>I don't have SharePoint here right now to test, but I feel you need use <strong>Ribbon.ListItem.New.Controls._children</strong></p> <hr> <p>Update: So far, I tested the button adding to Ribbon.ListItem.New.Controls._children. It works fine for me (I haven't use any registration type &amp; registration id yet). Sample code I used is:</p> <pre><code> &lt;CustomAction Id="ChangeBrowseTabTitle" Location="CommandUI.Ribbon"&gt; &lt;CommandUIExtension&gt; &lt;CommandUIDefinitions&gt; &lt;CommandUIDefinition Location="Ribbon.ListItem.New.Controls._children"&gt; &lt;Button Id="Ribbon.ListItem.New.RibbonTest" Alt="Test Button" Sequence="5" Command="Test_Button" LabelText="Click me!" Image32by32="/_layouts/SharePointTestProject/avatar32.png" TemplateAlias="o1" /&gt; &lt;/CommandUIDefinition&gt; &lt;/CommandUIDefinitions&gt; &lt;CommandUIHandlers&gt; &lt;CommandUIHandler Command="Test_Button" CommandAction="javascript:alert('I am a test!');" /&gt; &lt;/CommandUIHandlers&gt; &lt;/CommandUIExtension&gt; &lt;/CustomAction&gt; </code></pre> <p>The result is:</p> <p><img src="https://i.stack.imgur.com/q8toR.png" alt="alt text"></p> <p>So I will try to test the custom list binging now.</p> <hr> <p>Update: I took your "notworking.zip" project, and tried the code. With no luck. But when I created blank new list definition (Solution -> right-click -> Add -> New Item -> List Definition from content type), assigned custom id to it (10012), and changed reference in ribbon, it started working:</p> <p><img src="https://i.stack.imgur.com/oAGj2.png" alt="alt text"></p> <hr> <p><strong>Final result</strong></p> <p>So something was wrong with your list definition, actually. I don't have enough time to check all the xml, so simply I created new list with same columns as I described above, deleted your old one, and all is working now. You can download the final solution, using this link: </p> <p><a href="https://sites.google.com/site/omlinfiles/StackOverflow.RibbonCustomList.zip?attredirects=0&amp;d=1" rel="noreferrer">https://sites.google.com/site/omlinfiles/StackOverflow.RibbonCustomList.zip?attredirects=0&amp;d=1</a></p> <p>P.S. don't forget to change Site URL</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload