这里会显示出您选择的修订版和当前版本之间的差别。
— |
page_navigation_plugin [2019/12/07 21:07] (当前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Page Navigation Plugin ====== | ||
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : dokuwiki@cosmocode.de | ||
+ | type : syntax | ||
+ | lastupdate : 2019-08-21 | ||
+ | compatible : 2009-12-25+, | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : navigation, menu, namespace | ||
+ | |||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img : plugin: | ||
+ | ---- | ||
+ | |||
+ | This plugin inserts a next/ | ||
+ | |||
+ | ===== Download and Installation ===== | ||
+ | [[https:// | ||
+ | |||
+ | Search and install the plugin using the [[plugin: | ||
+ | |||
+ | ==== Changes ==== | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | ===== Syntax and Usage ===== | ||
+ | |||
+ | The simplest usage is this: | ||
+ | |||
+ | [<>] | ||
+ | |||
+ | It will include a navigation bar to browse through all pages in a namespace, displaying all buttons as shown above. | ||
+ | |||
+ | To control which buttons are shown, you can place a number inside the angle brackets: | ||
+ | |||
+ | [<2>] | ||
+ | |||
+ | The following numbers are recognized: | ||
+ | |||
+ | ^ number ^ shown buttons | | ||
+ | | 2 | previous, next | | ||
+ | | 4 | first, last | | ||
+ | | 6 | first, previous, next, last | | ||
+ | | 8 | start | | ||
+ | | 10 | previous, start, next | | ||
+ | | 12 | first, start, last | | ||
+ | |||
+ | If you want to restrict browsing on pages matching a certain regular expression you can give the expression separated by a space inside the square brackets. E.g. to browse only pages starting with '' | ||
+ | |||
+ | [<> ^a.*] | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | The navigation is cached with the page. When new pages are added to the namespace, the navigation might be wrong until the cache expires. Read [[: | ||
+ | |||
+ | You can now use this plugin inside a sidebar (for templates that have one). To make it work in a sidebar you have to disable caching for that sidebar completely using the %%~~NOCACHE~~%% macro in the sidebar page. You should also make sure the sidebar is set up to be hidden through the [[config: | ||
+ | |||
+ | Using this plugin together with [[: | ||
+ | |||