Hi Leon,

Leon Wang wrote:
> Hi Everyone,
> 
> I met some problem with adding my personal edit panel to the panels
> displayed in the WYSIWYG editing mode and Wiki editing mode. Here is what I
> did:
> 
> I imitate the script of Class Switcher and Rights Help. Here is what I
> wrote:
> Name: DesignRationale
> Type:edit
> Category: Information
> Content:
> #largepanelheader($msg.get('Design Rationale'))
> $xwiki.jsfx.use("js/xwiki/treeview/treeview.nocache.js", true) <div
> id="DR_TreeView"></div> #panelfooter()
> 
> When I specify its type is "view", it can display in the right panel.
> 
> Then I modify the template file: editpanelsvars.vm . I add
> "Panels.DesignRationale"
> to both $editorPanelsWysiwyg and $editorPanelsWysiwyg . Here is the result:
> #set($editorPanelsWiki =
> "Panels.DocumentInformation,Panels.EditTranslations,Panels.SyntaxHelp, Panels.
> DesignRationale")
> #set($editorPanelsWysiwyg =
> "Panels.DocumentInformation,Panels.EditTranslations,Panels.SyntaxHelp,Panels.
> DesignRationale")
> 
> I reload the Tomcat and refresh the Xwiki page in WYSIWYG editing or Wiki
> editing page. My customized panel did not appear.
> 
> Even I modify these two line like this:
> 
> #set($editorPanelsWiki = "Panels.DocumentInformation")
> #set($editorPanelsWysiwyg = "Panels.DocumentInformation")
> 
> After I reload Tomcat, the other edit panel like SyntaxHelp
> and EditTranslations would not disappear.
> 
> Could anyone Guru give me some idea what I missed? I do found out that
> in editpanelsvars.vm there one line comment:  ## Define variables containing
> the list of edit panels for the Albatross skin
> Does it mean it only take effect on albatross skin?

Yes. You have to edit skins/colibri/editpanelsvars.vm and change only 
the line with $editorPanelsWiki .

Hope this helps,
Marius

> 
> Big thanks in advance! :-)
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to