Adds an item in the "more options" menu

Usage

The extension point adds the content inside the "more options" menu.

moreoptions.png

Note: the "shortcuts" (all viewers) are displayed after the extension points. This will probably change in the next future.

You must have the "admin" right on the wiki to be able to create an UI extension.

Definition

This Extension Point is contributed by this extension and was added in version 7.3M2 of that extension.

Category
Content menus
Extension Id
org.xwiki.plaftorm.moreoptions
Content to be provided

The code to add in the extension point.

It should look like this:

{{velocity}}{{html clean="false"}} ## we need clean="false" because we want to display the raw content of #submenuitem()
 #template('menus_macros.vm')
 #submenuitem('url', 'title', 'id', 'class', 'icon')
{{/html}}{{/velocity}}
Parameters to be provided
  • order: the order in which the item will be displayed. The lower the number is, the more on the top the item is. Examples of correct orders: 10000, 20000. Please let enough room to add other UIX between existing ones and your own. The current items (even if most of them are not really implemented as UI extensions) have these orders:
    Watch Page10000Removed in XWiki 7.4M1
    Watch Space20000Removed in XWiki 7.4M1
    Watch Wiki30000Removed in XWiki 7.4M1
    Export80000menus_content.vm
    Print preview90000menus_content.vm
    View source100000menus_content.vm
    Share by email110000menus_content.vm
    Annotate85000AnnotationCode.AnnotateMenuUIX
  • separator: (optional) true if a separator should be displayed before the item.
Tags:
Created by Vincent Massol on 2017/09/09
   

Get Connected