Wiki source code of Menu Macro

Last modified by shahzad kazama on 2023/12/18 18:57

Show last authors
1 {{toc/}}
2
3 = Horizontal Menu =
4
5 {{velocity}}
6 #set ($menuTemplateDoc = $xwiki.getDocument('MenuTemplate'))
7 {{code language="none"}}
8 {{menu type="horizontal fixedWidth"}}
9 ## No way to escape content in the code macro, so just remove {, see https://jira.xwiki.org/browse/XRENDERING-13.
10 $menuTemplateDoc.content.replace('{', '')
11 {{/menu}}
12 {{/code}}
13 {{/velocity}}
14
15 {{menu type="horizontal fixedWidth"}}
16 {{include reference="MenuTemplate" /}}
17 {{/menu}}
18
19 = Vertical Menu =
20
21 {{velocity}}
22 {{code language="none"}}
23 {{menu type="vertical"}}
24 ...
25 {{/menu}}
26 {{/code}}
27 {{/velocity}}
28
29 {{menu type="vertical"}}
30 {{include reference="MenuTemplate" /}}
31 {{/menu}}

Tips

You can click on the arrows next to the breadcrumb elements to quickly navigate to sibling and children pages.

Need help?

If you need help with XWiki you can contact: