Top Menu Right
Last modified by Vincent Massol on 2019/06/06
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.3-rc-1 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 :
{{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}}- Parameters to be provided
- 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. The current items have these orders:
User Profile 10000 Quick Search 20000
- 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. The current items have these orders: