TopMenuRight
Version 2.1 by Guillaume Delhumeau on 2015/11/05
Contents
Add an icon or a menu in the top menu (on the right)
Usage
This extension point is displayed in the right part of the top menu, at the left of the drawer-activator icon.
Definition
This Extension Point is contributed by this extension and was added in version 7.3RC1 of that extension.
- Category
- Top Menu
- Extension Id
- org.xwiki.platform.topmenu.right
- 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 <li> <a href="somUrl" class="icon-navbar">Some content</a> </li> {{/html}}{{/velocity}}
To add a submenu :
{{/html}} ; **Parameters to be provided** : {{html clean="false" wiki="false"}}{{velocity}}{{html clean="false"}} ## we need clean="false" because we want to display the raw content <li class="dropdown"> <a class="icon-navbar dropdown-toggle" data-toggle="dropdown" role="button" arias-haspopup="true" aria-expanded="false"><span class="sr-only">$services.localization.render('core.menu.toggleNavigation')</span>Some text</a> <ul class="dropdown-menu"> <li><a href="">Some link</a></li> </ul> </li> {{/html}}{{/velocity}}
- order: the order in which the item will be displayed. The lower the number is, the more on the right the item is. Examples of correct orders: 10000, 20000. Please let enough room to add other UIX between existing ones and your own.