Archive for September, 2009

25
Sep

Page Editor conflict with master pages

Hey guys,

just a short note. After coming across the known issue that the page editor fails with master pages. I want to remind you that’s always useful to check the known issues after stumbling on a weird bug.

Anyway, the Sitecore Support always helps you finding a solution, even if you didn’t take a look at the known issues first :-) . Thanks.

Best, chris

07
Sep

sheer ui: create webedit ribbons (part 3)

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




September 2009
M T W T F S S
« Jul   Nov »
 123456
78910111213
14151617181920
21222324252627
282930  

Recent Entries