This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
zref:wiki:pluginsyntax:indexmenu [2025/04/22 13:44] – removed - external edit (Unknown date) 127.0.0.1 | zref:wiki:pluginsyntax:indexmenu [2025/04/22 13:44] (current) – ↷ Page moved from wiki:pluginsyntax:indexmenu to zref:wiki:pluginsyntax:indexmenu Alan Shea | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======IndexMenu Plugin==== | ||
+ | |||
+ | [[doku> | ||
+ | |||
+ | ===== Quick Syntax ====== | ||
+ | |:!: All the syntax options can be easily accessed with the indexmenu picker in the [[doku>: | ||
+ | |||
+ | ^Main ^Options | | ||
+ | |**%%{{%%indexmenu> | ||
+ | //Arguments inside " | ||
+ | |||
+ | ===== Full syntax ===== | ||
+ | Settings **before the " | ||
+ | ^Main ^Action ^Note| | ||
+ | ^ //'' | ||
+ | ^ //''# | ||
+ | ^ //'' | ||
+ | |||
+ | Optional settings **after the " | ||
+ | ^Option ^Action ^Note| | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ //'' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | A sample of an indexmenu JS index that could be used inside a navigation sidebar. Its initial status is blocked by the nocookie option, so, when the page is reloaded, it doesn' | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | JS navigation index with " | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | Standard DokuWiki index showing only pages inside wiki: | ||
+ | < | ||
+ | {{indexmenu>: | ||
+ | </ | ||
+ | |||
+ | Js tree showing pages and namespaces both sorted by reverse title. For example,if " | ||
+ | < | ||
+ | {{indexmenu>: | ||
+ | </ | ||
+ | |||
+ | Standard index showing the tree of the current context ((the namespace of the page displayed by a user who is navigating your site)) opened at the second level . | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | Show all current namespace pages . | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | JS tree showing all (and only) the namespaces of the " | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Metadata tag syntax ===== | ||
+ | By default nodes on the same tree level are sorted by name (or by title/date if you use the tsort/dsort syntax), but you can also specify a custom sort number for every page inserting a metadata tag in the pages with this syntax: | ||
+ | < | ||
+ | {{indexmenu_n> | ||
+ | </ | ||
+ | |||
+ | Where '' | ||
+ | Then you need to use the " | ||
+ | If you have the '' | ||
+ | |||
+ | **Examples: | ||
+ | |||
+ | You can change the order of this tree containing a mix of standard and [[doku> | ||
+ | |||
+ | < | ||
+ | -Root | ||
+ | |_don | ||
+ | |_Mirror sessions | ||
+ | |_pachuco | ||
+ | |_At the radar station | ||
+ | |_van | ||
+ | |_vliet | ||
+ | </ | ||
+ | |||
+ | in this way: | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | < | ||
+ | -Root | ||
+ | |_vliet | ||
+ | |_van | ||
+ | |_don | ||
+ | |_Mirror sessions | ||
+ | |_pachuco | ||
+ | |_At the radar station | ||
+ | </ | ||
+ | |||
+ | Pages without sort number, like the last three pages, are sorted by page name as default, but you can force a different sort: | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | < | ||
+ | -Root | ||
+ | |_vliet | ||
+ | |_van | ||
+ | |_don | ||
+ | |_At the radar station | ||
+ | |_Mirror sessions | ||
+ | |_pachuco | ||
+ | </ | ||
+ | |||