wiki:插件语法:indexmenu
差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版 | |||
| wiki:插件语法:indexmenu [2026/10/15 06:59] – 外部编辑 127.0.0.1 | wiki:插件语法:indexmenu [2026/10/15 21:29] (当前版本) – 外部编辑 127.0.0.1 | ||
|---|---|---|---|
| 行 17: | 行 17: | ||
| donationurl: | donationurl: | ||
| --- | --- | ||
| - | ^ :!: If you use the Indexmenu' | + | ^ :!: If you use the Indexmenu' |
| This plugin allows you to insert a fully customizable index or a list of pages starting from a specified namespace. | This plugin allows you to insert a fully customizable index or a list of pages starting from a specified namespace. | ||
| 行 33: | 行 33: | ||
| * Hide namespaces/ | * Hide namespaces/ | ||
| - | Themed indexmenu based on the Javascript index builder:\\ | + | Themed indexmenu based on the Javascript index builder:\ |
| - |  in your indexmenu trees. | The configuration setting `skip_index` let you globally hide namespaces (and their pages) in your indexmenu trees. | ||
| - | Just fill this option with the ids of namespaces to skip using [Regular Expression](http:// | + | Just fill this option with the ids of namespaces to skip using [Regular Expression](http:// |
| :!: Till V4.5, a namespaces full path has to be declared as a file system path (i.e.: " | :!: Till V4.5, a namespaces full path has to be declared as a file system path (i.e.: " | ||
| There are also some issues [About empty namespaces](.: | There are also some issues [About empty namespaces](.: | ||
| - | **Simple examples:**\\ | + | **Simple examples: |
| Skip any namespace whose ID contains the word `copyright` or `privatens: | Skip any namespace whose ID contains the word `copyright` or `privatens: | ||
| 行 333: | 行 333: | ||
| ### Skip Files in index | ### Skip Files in index | ||
| This configuration option `skip_file` let you to globally hide one or more pages in your indexmenu trees. | This configuration option `skip_file` let you to globally hide one or more pages in your indexmenu trees. | ||
| - | Just fill this option with the ids of pages to skip using [Regular Expression](http:// | + | Just fill this option with the ids of pages to skip using [Regular Expression](http:// |
| :!: Till v4.5, pages are checked as DokuWiki text files (i.e.: start.txt). A page full path have to be declared as a file system path (i.e.: " | :!: Till v4.5, pages are checked as DokuWiki text files (i.e.: start.txt). A page full path have to be declared as a file system path (i.e.: " | ||
| 行 456: | 行 456: | ||
| Since the April 2013 plugin release you can add the **`nomenu`** option to indexmenu syntax to disable the contextmenu. | Since the April 2013 plugin release you can add the **`nomenu`** option to indexmenu syntax to disable the contextmenu. | ||
| - | Modification of menu in performed in `scripts/ | + | Modification of menu in performed in `scripts/ |
| (You can rename the example file from `scripts/ | (You can rename the example file from `scripts/ | ||
| - | * Overriding menu entry \\ | + | * Overriding menu entry\ |
| ```javascript | ```javascript | ||
| indexmenu_contextmenu[' | indexmenu_contextmenu[' | ||
| ``` | ``` | ||
| - | * Adding menu entry \\ | + | * Adding menu entry\ |
| ```javascript | ```javascript | ||
| indexmenu_contextmenu[' | indexmenu_contextmenu[' | ||
| 行 482: | 行 482: | ||
| * `entryDescriptionArray` - array with description of a menu entry | * `entryDescriptionArray` - array with description of a menu entry | ||
| - | **How to write utf8 chars, like èåäö, in the context menu file?**\\ | + | **How to write utf8 chars, like èåäö, in the context menu file?**\ |
| A solution is to encode them yourself: Find your char at http:// | A solution is to encode them yourself: Find your char at http:// | ||
| 行 544: | 行 544: | ||
| # FAQ and Notes | # FAQ and Notes | ||
| ### The tree is not working as expected | ### The tree is not working as expected | ||
| - | * If you installed for the first time the indexmenu plugin or upgraded it from a previous release, it could be merely a cache issue. Example of symptoms are: tree is not displayed (or a static DokuWiki index is displayed in its place), context menu is not working, any new release feature reported in the [changelog](.indexmenu# | + | * If you installed for the first time the indexmenu plugin or upgraded it from a previous release, it could be merely a cache issue. Example of symptoms are: tree is not displayed (or a static DokuWiki index is displayed in its place), context menu is not working, any new release feature reported in the [changelog](.indexmenu# |
| - | * When an updated indexmenu plugin fails in a _2013-05-10 " | + | Try to follow instructions to purge cache described in the [The tree is not displayed](.indexmenu# |
| + | * When an updated indexmenu plugin fails in a _2013-05-10 " | ||
| + | Please check whether all plugins and your theme don't use the old javascript functions. Since the Weatherwax release, these deprecated functions are missing (some plugins still require an update) and will break the javascript rendering.\ | ||
| + | Check for errors:\ | ||
| + | - in console of browser e.g. as part of the Developer toolbar\ | ||
| + | - by disabling all plugins and enabling one by one | ||
| * If you think that indexmenu are still not fitting your needs, be sure to using a correct [syntax](.indexmenu# | * If you think that indexmenu are still not fitting your needs, be sure to using a correct [syntax](.indexmenu# | ||
| * You are sure that the syntax is correct. Perhaps you missed something in this [FAQ and Notes](.indexmenu# | * You are sure that the syntax is correct. Perhaps you missed something in this [FAQ and Notes](.indexmenu# | ||
| 行 632: | 行 637: | ||
| * **Disabled**: | * **Disabled**: | ||
| - | In both cases, unauthorized pages are never showed. There are also some issues [About empty namespaces](.: | + | In both cases, unauthorized pages are never showed. There are also some issues [About empty namespaces](.: |
| This namespace behaviour in presence of ACLs can not be changed until it's not changed in the DokuWiki core itself. | This namespace behaviour in presence of ACLs can not be changed until it's not changed in the DokuWiki core itself. | ||
| 行 691: | 行 696: | ||
| When the `max#nr` option or level of folded nodes are configured and the node has to retrieve its children through the Ajax request, there can appear empty nodes because indexmenu hasn't looked forward and doesn' | When the `max#nr` option or level of folded nodes are configured and the node has to retrieve its children through the Ajax request, there can appear empty nodes because indexmenu hasn't looked forward and doesn' | ||
| - | **Why do you need a sort option to correctly hide empty namespaces? | + | **Why do you need a sort option to correctly hide empty namespaces? |
| When any of the sort options `tsort`, `dsort`, `msort` `nsort` or `hsort` is used indexmenu replaces the faster, but less featured, core DokuWiki search with the slower, but more featured, indexmenu search that filters more empty nodes. | When any of the sort options `tsort`, `dsort`, `msort` `nsort` or `hsort` is used indexmenu replaces the faster, but less featured, core DokuWiki search with the slower, but more featured, indexmenu search that filters more empty nodes. | ||
| - | **Why will sneaky_index hide forbidden namespaces**\\ | + | **Why will sneaky_index hide forbidden namespaces**\ |
| Enabling the `[sneaky_index](config: | Enabling the `[sneaky_index](config: | ||
| 行 711: | 行 716: | ||
| # Discussion | # Discussion | ||
| - | Please, use the [discussion](.: | + | Please, use the [discussion](.: |
| + | Old discussions are archived in the [olddiscussion](.: | ||
wiki/插件语法/indexmenu.txt · 最后更改: 由 127.0.0.1
