mercredi 25 février 2015

Full List Of Location Attribute For CommandUIDefinition



I want to display a custom action button on the list view only (not on the DisplayForm).


In the example below the Location attribute for the CommandUIDefinition is set to



Ribbon.ListForm.Display.Manage.Controls._children




<CommandUIDefinitions>
<CommandUIDefinition **Location="Ribbon.ListForm.Display.Manage.Controls._children"**>
<Button Id="{E22A6CA6-06F0-40E2-B995-34294CAC7422}"
Command="{2461C3B4-303B-4A19-9610-DD87ECFF7095}"
Image32by32="~site/_layouts/Images/MYSOLUTION/myimage32.png"
Image16by16="~site/_layouts/Images/MYSOLUTION/myimage16.png"
Sequence="0"
LabelText="Create Child Item"
Description="Create Child Item"
TemplateAlias="o1"/>
</CommandUIDefinition>
</CommandUIDefinitions>


But there is also a Location attribute in the CustomAction definition too.


In my example this Location attribute in the CustomAction attribute is set to:



CommandUI.Ribbon.DisplayForm




<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://ift.tt/sQmbje">
<CustomAction
Id="{F448A055-B646-455E-94AB-64C7A9122789}"
RegistrationType="ContentType"
RegistrationId="0x0100B7080A7BAA48E54694292941D7204275"
**Location="CommandUI.Ribbon.DisplayForm"**
Rights="ViewListItems">
<CommandUIExtension xmlns="http://ift.tt/sQmbje">
<!-- Define the (UI) button to be used for this custom action -->
<CommandUIDefinitions>


Both Location attributes seem to target different locations even though they are specifying the same custom action location.


Is there a full list of these locations for the CommandUIDefinition Location attribute?








0 commentaires:

Enregistrer un commentaire