Hey guys,
let’s get back to the blogsphere by writing again. After the sumer hole 2009, the autumn seems to start in Germany. A lot’s of stuff happened in the last time: The OMS release, Sitecore 6.1 and I’ve passed my Sitecore Trainer Exam.
Thanks again Alex, Bert, Peter and Sven.
Like in the first post of this series. I show you the different Sitecore Buttons which you know already, I guess. Â
- Large Combo Button: The field “Gallery” specifies the control id of the “Menu” to display. The control is a xaml file like any other “sitecore client xaml application”. The code looks like this:
<?xml version=”1.0″ encoding=”utf-8″ ?>
<control xmlns:def=”Definition” xmlns=”http://schemas.sitecore.net/Visual-Studio-Intellisense“>
 <Gallery.WorkflowEdit>
   <Stylesheet Key=”Gallery.WorkflowEdit”>
     body {
     height:auto;
     }
   </Stylesheet>
   <Gallery>
     <CodeBeside Type=”Sitecore.Shell.Applications.ContentManager. Galleries.WorkflowEdit.GalleryWorkflowEditForm, Sitecore.Client”/>
<Menu ID=”Options” Border=”none”/>
</Gallery>
 </Gallery.WorkflowEdit>
</control>
- Panel: The complete layout is specified in the code behind. The type field is where your <namespace + class name>,<assembly name> goes in. Here “Sitecore.Shell.Applications.ContentManager.Panels.NewPanel,Sitecore.Client”. The code is pretty long though, but the important thing is that you have to inherit the “RibbonPanel” class and override the Render method.
public class NewPanel : RibbonPanel
{
   // Methods
   public NewPanel();
   protected virtual string GetClick(Item item);
   protected static UrlString GetUrl(Item item);
   public override void Render(HtmlTextWriter output, Ribbon ribbon, Item button, CommandContext context);
   private static void RenderOptions(HtmlTextWriter output, List<InsertOption> options);
}
- Large Menu Combo Button: The Items which build your menu, are of the “menu item” template. You can pass the id of the current item by using parameters like this: “item:deletechildren(id=$Target)” (The delete children menu).
Hope I could bringt some light into the dark. I already got another idea about topics to write about, so stay tuned.
Best, Chris
‹ go back // go to overview





Hi Chris
Thanks for the tutorial. It sure helped me a lot and I managed to get the buttons working and all. But I have a problem with some users I created with author-permissions. The strip I created doesn’t show when they are logged in, and it is not possible to choose it when right-clicking on the topmenu. Can you tell me (and probably some other dummies like myself :O)) how to make the strip visible?
Regards
Peter
Sorry, it took a bit longer.
Did you apply any security settings?
best