Custom Ribbon Menu
<?
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
Id="WON.SharePoint.Ribbon.CustomTab" Location="CommandUI.Ribbon" RegistrationType="List" RegistrationId="301"><
CommandUIExtension><
CommandUIDefinitions><
CommandUIDefinition Location="Ribbon.Tabs._children"><
Tab Id="WON.SharePoint.Ribbon.CustomTab" Title="WON Tools" Description="Groups and controls will go in here" Sequence="550"><
Scaling Id="WON.SharePoint.Ribbon.CustomTab.Scaling"><
MaxSize Id="WON.SharePoint.Ribbon.CustomTab.NotificationGroup.MaxSize" GroupId="WON.SharePoint.Ribbon.CustomTab.NotificationGroup" Size="OneLarge"/><
MaxSize Id="WON.SharePoint.Ribbon.CustomTab.StatusGroup.MaxSize" GroupId="WON.SharePoint.Ribbon.CustomTab.StatusGroup" Size="TwoMedium"/><
MaxSize Id="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.MaxSize" GroupId="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup" Size="TwoLarge"/><
Scale Id="WON.SharePoint.Ribbon.CustomTab.NotificationGroup.Scaling.CustomTabScaling" GroupId="WON.SharePoint.Ribbon.CustomTab.NotificationGroup" Size="OneLarge" /><
Scale Id="WON.SharePoint.Ribbon.CustomTab.StatusGroup.Scaling.CustomTabScaling" GroupId="WON.SharePoint.Ribbon.CustomTab.StatusGroup" Size="TwoMedium" /><
Scale Id="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.Scaling.CustomTabScaling" GroupId="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup" Size="TwoLarge" /></
Scaling><
Groups Id="WON.SharePoint.Ribbon.CustomTab.Groups"><
Group Id="WON.SharePoint.Ribbon.CustomTab.NotificationGroup" Description="Contains notification items" Title="Notification messages" Sequence="10" Template="Ribbon.Templates.OneLargeExample"><
Controls Id="WON.SharePoint.Ribbon.CustomTab.NotificationGroup.Controls"><
Button Id="WON.SharePoint.Ribbon.CustomTab.NotificationGroup.Notify" Command="WON.Command.Notify" Sequence="10" Image16by16="/_layouts/images/NoteBoard_16x16.png" Image32by32="/_layouts/images/NoteBoard_32x32.png" Description="Uses the notification area to display a message." LabelText="Notify hello" TemplateAlias="cust1"/></
Controls></
Group><
Group Id="WON.SharePoint.Ribbon.CustomTab.StatusGroup" Description="Contains 'add status' items" Title="Add status messages" Sequence="20" Template="Ribbon.Templates.TwoMediumExample"><
Controls Id="WON.SharePoint.Ribbon.CustomTab.StatusGroup.Controls"><
Button Id="WON.SharePoint.Ribbon.CustomTab.StatusGroup.AddStatusInfo" Command="WON.Command.AddStatusInfo" Sequence="10" Image16by16="/_layouts/images/info16by16.gif" Image32by32="/_layouts/images/info16by16.gif" Description="Uses the status bar to display an info message." LabelText="Info status" TemplateAlias="cust2"/><
Button Id="WON.SharePoint.Ribbon.CustomTab.StatusGroup.AddStatusWarning" Command="WON.Command.AddStatusWarn" Sequence="20" Image16by16="/_layouts/images/warning16by16.gif" Image32by32="/_layouts/images/warning32by32.gif" Description="Uses the status bar to display a warning message." LabelText="Warning status" TemplateAlias="cust3"/></
Controls></
Group><
Group Id="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup" Description="Contains 'remove status' items" Title="Remove status messages" Sequence="30" Template="Ribbon.Templates.TwoLargeExample"><
Controls Id="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.Controls"><
Button Id="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.RemoveLastStatusButton" Command="WON.Command.RemoveLastStatus" Sequence="10" Image16by16="/_layouts/images/warning16by16.gif" Image32by32="/_layouts/images/CRIT_32.GIF" Description="Removes the last message from the status bar." LabelText="Remove last status message" TemplateAlias="cust4"/><
Button Id="WON.SharePoint.Ribbon.CustomTab.RemoveStatusGroup.RemoveAllStatusButton" Command="WON.Command.RemoveAllStatus" Sequence="20" Image16by16="/_layouts/images/warning16by16.gif" Image32by32="/_layouts/images/CRIT_32.GIF" Description="Removes all messages from the status bar." LabelText="Remove all status messages" TemplateAlias="cust5"/></
Controls></
Group></
Groups></
Tab></
CommandUIDefinition><
CommandUIDefinition Location="Ribbon.Templates._children"><
GroupTemplate Id="Ribbon.Templates.OneLargeExample"><
Layout Title="OneLarge" LayoutTitle="OneLarge"><
Section Alignment="Top" Type="OneRow"><
Row><
ControlRef DisplayMode="Large" TemplateAlias="cust1" /></
Row></
Section></
Layout></
GroupTemplate></
CommandUIDefinition><
CommandUIDefinition Location="Ribbon.Templates._children"><
GroupTemplate Id="Ribbon.Templates.TwoMediumExample"><
Layout Title="TwoMedium" LayoutTitle="TwoMedium"><
Section Alignment="Top" Type="TwoRow"><
Row><
ControlRef DisplayMode="Medium" TemplateAlias="cust2" /></
Row><
Row><
ControlRef DisplayMode="Medium" TemplateAlias="cust3" /></
Row></
Section></
Layout></
GroupTemplate></
CommandUIDefinition><
CommandUIDefinition Location="Ribbon.Templates._children"><
GroupTemplate Id="Ribbon.Templates.TwoLargeExample"><
Layout Title="TwoLarge" LayoutTitle="TwoLarge"><
Section Alignment="Top" Type="OneRow"><
Row><
ControlRef DisplayMode="Large" TemplateAlias="cust4" /><
ControlRef DisplayMode="Large" TemplateAlias="cust5" /></
Row></
Section></
Layout></
GroupTemplate></
CommandUIDefinition></
CommandUIDefinitions><
CommandUIHandlers><
CommandUIHandler Command="WON.Command.Notify" CommandAction="javascript: var notificationId = SP.UI.Notify.addNotification('Hello from the notification area'); " /><
CommandUIHandler Command="WON.Command.AddStatusInfo" CommandAction="javascript:var statusId = SP.UI.Status.addStatus('Quite important status message');
visibleStatusIds.push(statusId);
enableRemoveStatusButton();
RefreshCommandUI();
" /><
CommandUIHandler Command="WON.Command.AddStatusWarn" CommandAction="javascript:var warnStatusId = SP.UI.Status.addStatus('Very important status message');
SP.UI.Status.setStatusPriColor(warnStatusId, 'red');
visibleStatusIds.push(warnStatusId);
enableRemoveStatusButton();
RefreshCommandUI();
" /><
CommandUIHandler Command="WON.Command.RemoveLastStatus" EnabledScript="javascript: enableRemoveStatusButton();" CommandAction="javascript:SP.UI.Status.removeStatus(visibleStatusIds[visibleStatusIds.length - 1]);
visibleStatusIds.pop();
enableRemoveStatusButton();
RefreshCommandUI();
" /><
CommandUIHandler Command="WON.Command.RemoveAllStatus" EnabledScript="javascript: enableRemoveStatusButton();" CommandAction="javascript:SP.UI.Status.removeAllStatus(true);
visibleStatusIds.length = 0;
enableRemoveStatusButton();
RefreshCommandUI();
" /></
CommandUIHandlers></
CommandUIExtension></
CustomAction><
CustomAction Id="WON.Command.RemoveLastStatus.CheckEnable" Location="ScriptLink" ScriptBlock="var visibleStatusIds = [];
function enableRemoveStatusButton() {
return (visibleStatusIds.length > 0);
}
" /></
Elements>
-1 | InvalidType | (not used) | ||
100 | GenericList | 0 | (see note below) Also used for "Import Spreadsheet" Also: (and I'm sure more...) Relationships List Reusable Content Quick Deploy Items Variation Labels Long Running Operation Status Notification List Reporting Metadata Cache Profiles Content and Structure Reports Reporting Metadata Suggested Content Browser Locations From Central Admin: From Central Admin 2010: | |
101 | DocumentLibrary | 1 | all kinds of libraries: From 2010: cache | |
102 | Survey | 4 | ||
103 | Links | 0 | ||
104 | Announcements | 0 | ||
105 | Contacts | 0 | ||
106 | Events | 0 | Calendar | |
107 | Tasks | 0 | Task lists in general, including “Workflow tasks” | |
108 | DiscussionBoard | 0 | Example: “Team Discussion” | |
109 | PictureLibrary | 1 | ||
110 | DataSources | 1 | (fpdatasources = FrontPage Data Sources???) | |
111 | WebTemplateCatalog | 1 | "Site Template Gallery" | |
112 | UserInformation | 0 | "User Information List" (all people) | |
113 | WebPartCatalog | 1 | "Web Part Gallery" | |
114 | ListTemplateCatalog | 1 | "List Template Gallery" | |
115 | XMLForm | 1 | "Form Library" InfoPath Forms Library | |
116 | MasterPageCatalog | 1 | "Master Page Gallery" | |
117 | NoCodeWorkflows | 1 | "Workflows" | |
118 | WorkflowProcess | |||
119 | WebPageLibrary | 1 | "Wiki Library" (also “Site Pages” in 2010) | |
120 | CustomGrid | 0 | "Custom List in Datasheet View" | |
121 | SolutionCatalog | 0 | 2010 | “Solution Gallery” |
122 | NoCodePublic | 0 | 2010 | No Code Public Workflows |
123 | ThemeCatalog | 0 | 2010 | “Theme Gallery” |
124 | DesignCatalog | 2013 | ||
125 | AppDataCatalog | 2013 | ||
130 | DataConnectionLibrary | 1 | M | "Data Connection Library" |
140 | WorkflowHistory | 0 | "Workflow History" (“Macros” in 2010’s CharitableContributions template) | |
150 | GanttTasks | 0 | "Project Tasks" task list | |
151 | HelpLibrary | Product Help (Central Admin only?) | ||
160 | AccessRequest | 0 | 2013 | |
171 | TasksWithTimelineAndHierarchy | 0 | 2013 | |
175 | MaintenanceLogs | 2013 | ||
200 | Meetings | 0 | Meeting templates - "Meeting Series" | |
201 | Agenda | 0 | Meeting templates - "Agenda" | |
202 | MeetingUser | 0 | Meeting templates - "Attendees" | |
204 | Decision | Meeting templates | ||
207 | MeetingObjective | 0 | Meeting templates - "Objectives" | |
210 | TextBox | 0 | Meeting templates - "Directions" ("Use this list to insert custom text into your meeting.") | |
211 | ThingsToBring | 0 | Meeting templates - "Things To Bring" | |
212 | HomePageLibrary | 1 | Meeting templates - "Workspace Pages" | |
300 | Sites | 0 | M | Sites list in Publishing templates (not in SPListTemplateType) |
301 | Posts | 0 | Used in blogs (also appears to be used for Search tabs) | |
302 | Comments | 0 | Used in blogs | |
303 | Categories | 0 | Used in blogs | |
398 | 0 | 2010 | Access Services Application Log | |
399 | 0 | 2010 | Access Services System Objects | |
402 | Facility | 0 | 2010 | Resources “Use the Resources list to document shared assets, such as cameras and vehicles. Users can reserve and track listed resources in Group Calendar.” (used in the new Group Work Site template) |
403 | Whereabouts | 0 | 2010 | Whereabouts “Use this list to quickly and easily track the location of individuals throughout the day.” (used in the new Group Work Site template) |
404 | CallTrack | 0 | 2010 | Phone Call Memo (used in the new Group Work Site template) |
405 | Circulation | 0 | 2010 | Circulations “Use this list to inform team members and request confirmation stamps.” (used in the new Group Work Site template) |
420 | Timecard | 0 | 2010 | |
421 | Holidays | 0 | 2010 | |
432 | 0 | E | "Sample KPIs" (not in SPListTemplateType) | |
433 | 1 | E | "Reports Library"(not in SPListTemplateType) | |
434 | 1 | E | "Reference Library"(not in SPListTemplateType) | |
499 | IMEDic | 0 | 2010 | IME Dictionary (Input Method Editor: http://office.microsoft.com/en-us/powerpoint/HP030900551033.aspx) |
544 | 2013 | Micro Feed / Published Feed (also 2010?) | ||
600 | ExternalList | 0 | 2010 | External List |
700 | MySiteDocumentLibrary | 2013 | ||
850 | Pages | 1 | M | Used with publishing templates (thanks to Anders Jacobsen for this one) (not in SPListTemplateType) |
851 | 1 | M, 2010 | “Images”, “Site Collection Images” “This system library was created by the Publishing feature to store images that are used on pages in this site.” (not in SPListTemplateType) Also: “Asset Libary” in 2010 | |
1100 | IssueTracking | 0 | "Issue Tracking" task list | |
1200 | AdminTasks | 0 | used in Central Administration | |
1220 | HealthRules | 0 | 2010 | used in Central Administration |
1221 | HealthReports | 0 | 2010 | used in Central Administration |
1230 | DeveloperSiteDraftApps | 1 | 2013 | Draft Apps library in Developer Site |
1300 | Translation Management Library | 1 | M | (thanks to Dennis for this one) (not in SPListTemplateType) |
1301 | Languages & Translations | 0 | M | "Translators" Created with a 1300 (thanks to Dennis for this one) (not in SPListTemplateType) |
2100 | 1 | M | PowerPoint Slide Library (not in SPListTemplateType) | |
10102 | Converted Forms | 1 | "List of user browser-enabled form templates on this site collection" (not in SPListTemplateType) |