I'd like to add some custom actions for the pages on our site. These pages all have use the Page or Welcome Page Content Type.
Thanks.
|
I'd like to add some custom actions for the pages on our site. These pages all have use the Page or Welcome Page Content Type. Thanks. |
|||
|
|
|
To assign ribbon to all pages with specified content type, you can use For example:
Caution: Your content type id must be uppercase! Read about CustomAction Element on MSDN for details. Also it may be useful for you to read about Base Content Type Hierarchy. For example, according to that document, you can use "0x01010901" value to associate your ribbon customizations with all the web part pages. |
|||||||||||
|
|
You can also check my blog post An in depth look at the ribbon control to get more information on how to customize the ribbon and add Silverlight or regular controls to it. |
|||||
|
|