DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pagenav

This is an old revision of the document!


Page Navigation Plugin

Compatible with DokuWiki

2009-12-25+

plugin Displays links to the next or previous alphabetically ordered page

Last updated on
2016-01-22
Provides
Syntax
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to docnavigation

Tagged with menu, namespace, navigation

This plugin lets you insert a next/previous page navigation to let you users easily navigate through all pages in a namespace. The namespace's start page will be skipped on browsing.

Download and Installation

A CosmoCode Plugin

Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.

Changes

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 you could use this:

[<> ^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 caching on how to update the cache manually.

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 hidepages option.

Using this plugin together with namespace templates might be useful.

Discussion

Please, could you provide the syntax to use for hiding the sidebar file? I tried a lot of things in the hidepages option but he sidebar always appear as next page in pagesnav. I tried `sidebar`, `sidebar$`,`^(?::sidebar)$`but none of them works. Thanks for your help.

plugin/pagenav.1453639785.txt.gz · Last modified: 2016-01-24 13:49 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki