Custom Ribbon Object — tabs, groups and controls

http://www.sharepointnutsandbolts.com/2010/01/customizing-ribbon-part-1-creating-tabs.html

Ribbon elements must be declared in XML with the <CustomAction>
tag.

The hierachy is : Ribbon à Tab à Group à Control; entire tab can be shown/hidden; individual control can be enabled/disabled

You can’t put a custom control in the ribbon. The main ribbon elements file: TEMPLATE\GLOBAL\XML\CMDUI.XML

Ribbon uses Javascript. Javascript can be:
(1) embedded with the XML, via a separate
CustomAction with a new “Location=ScriptLink” attribute.
(2) deploying a *.js file.

How button command is handled (javascript)

New Group in Existing Tab

New Control in Existing Group

Custom Command tab exist for List page only.

Control ribbon from server side code, such as Web Part.

Advertisements
Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: