|
answer
|
This article does not make sense anymore because the page menu does not exist anymore. I'm still leaving it for version 0.8 or before of XWiki.
To modify the editor menu, you just need to edit the XWiki.XWikiPreferences page of your wiki.
Using the class editor, add the pagemenu TextArea field.
Using the object editor, edit the field pagemenu and add the original content of the menu which you can find in the pagemenu.vm template between:
#if ( $pagemenu != "")
$xwiki.parseContent($pagemenu)
#else
and
#end
</div>
<script type="text/javascript">
setmenustyle(menustatus);
</script>
#end
You can then make slight modifications to the page menu field and see the changes appear in the interface.
There are two important things to know before making such modifications:
- if you make a velocity syntax mistake in the page menu you might break the whole interface (use the back button to revert your change)
- the page menu is often modified with new releases of XWiki. When upgrading XWiki you need to be extra carefull as the older page menu you based the one you create on, might not work anymore with the more recent XWiki version. Also there might be additions in the menu that are not in your version. You will need to review your page menu to adapt it.
|