Viewers Menu

Version 2.1 by Simon Urli on 2020/09/21
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Adds an item in the "Viewers" sub menu in Other actions menu

Usage

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><body><p>The extension point adds the content inside the &quot;viewers&quot; sub-menu of the &quot;more options&quot; menu.</p><!startmacro:image|-|reference="viewers.png"><!stopmacro></body></html>

Definition

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

Category
Content Menu
Extension Id
org.xwiki.platform.template.menu.viewers
Content to be provided

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><body><p>The code to add in the extension point.</p><p>It should look like this:</p><!startmacro:code|-|language="vm"|-|Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [xwiki:Documentation.DevGuide.ExtensionPoint.Viewers Menu.WebHome]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.
><!stopmacro></body></html>

Parameters to be provided

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 StrictEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><body><ul><li><strong>order</strong>: 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: <em>10000</em>, <em>20000</em>. Please let enough room to add other UIX between existing ones and your own.</li><li><strong>separator</strong>: (optional) <tt>true</tt> if a separator should be displayed before the item.</li></ul></body></html>

Get Connected