# Исходный код вики Menu Macro

Редактировал(а) Alexandr Fokin 2025/09/20 12:20

Последние авторы

author | version | line-number | content
--- | --- | --- | ---
|  | 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}}

## Приложения