Not logged in. · Lost password · Register
Forum: General Help and Support Plugins Plugin Wishlist RSS
Plugin for "< Back" "Forward>" navigation
Avatar
Alexg27 #1
Member since Feb 2014 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Plugin for "< Back" "Forward>" navigation
I need a simple plugin, what have on every page "Back" and "Forward" command. Link in this commands based on a "Map.txt" file or something other. I can generate this file self-automaticly on example: https://www.dokuwiki.org/manual
Every page in this table of contents knows previous and next topic for navigation. I can pay for this plugin and "auto generation map.txt file" tool.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4627 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I assume you don't mean within a single page, since Dokuwiki already comes with a built-in per page table of contents.  For navigation between pages,  see if you can find what you need from the available navigation plugins:
    https://www.dokuwiki.org/plugins?plugintag=navigation#exte…
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
ach (Administrator) #3
Member since May 2006 · 1909 posts · Location: Folkestone, UK
Group memberships: Administrators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
The pagenav plugin is doing half of what you want. It is mapping alphabetically, so you can only change the order by renaming pages. It would be ideal if that could work together with the navi plugin which gets its structure from one single link list.
Avatar
Alexg27 #4
Member since Feb 2014 · 2 posts
Group memberships: Members
Show profile · Link to this post
Thank you, but i already watch this plugins. My page structure totally different from alphabetical or "all pages on same folder". Only navigationRouteFile or something can help. I explain why this plugin needs:
1) at first time documentation contains in few huge MS Word doc files,
2) at second these large files cut into small documents an put in Docuwiki. Folder structure same as level of headers in MS Word (1) file
3) users need read documentation part by part in a particular order. This order make a Human, author of (1) document
Avatar
molefunk #5
User title: molefunk
Member since Jul 2010 · 54 posts · Location: Mayapur, India
Group memberships: Members
Show profile · Link to this post
I'd second the notion of letting the pagenav plugin read its array from a text file in the specified namespace!

However, the bloglinks plugin also has a prev/next browsing feature, which may prove to be just what you need. It sorts by metadata (eg. creation date), which you can either do by creating the pages in the right order, or with the trusty old Meta plugin. You'll also need the blog plugin for this to work. (I don't know if this will have any negative side effects, be advised.) The only challenge I foresee would be due to your structure having several subfolders/namespaces, and I'm not sure the bloglinks will go deeper than one level.

Best of luck!


PS. How to make links like yours, ach?
Avatar
ach (Administrator) #6
Member since May 2006 · 1909 posts · Location: Folkestone, UK
Group memberships: Administrators, Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by molefunk:
PS. How to make links like yours, ach?

Unfortunately it's not very well documented and hard to find. It's e.g.
[url=http://www.dokuwiki.org]DokuWiki[/url]
Avatar
Dr-Yukon #7
User title: Rainbow_Spike
Member since Jun 2012 · 31 posts · Location: Russia, Primorsky Kray
Group memberships: Members
Show profile · Link to this post
http://comicslate.org use comic folders with number pages 0001...0002... and unpublished Cnav plugin. It has syntax {cnav} and can locate uncommon names for back and forward links, such as {cover<cnav}...{cnav>0001a}...{0001<cnav>0001b}. {cnav-3} used for 001...002 and so on; other number option allowed. On index page {cnav} mean start of comic reading and hasn't "back" part.

Additionally we use these strings in conf/entities.local.conf:
[back]   <a href="./index" class="media" accesskey="p"><img src="/lib/plugins/cnav/images/left.png" class="media" title="Back" alt="&#8592;" /></a>
[up]     <a href="../index" class="media" accesskey="i"><img src="/lib/plugins/cnav/images/up.png" class="media" title="Upfolder" alt="&#8593;" /></a>
https://comicslate.org
This post was edited on 2015-01-02, 07:53 by Dr-Yukon.
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4627 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
If you think it's useful to the  community then publish it.  Otherwise there's no point in telling people about it.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Klap-in #9
Member since Nov 2009 · 239 posts · Location: Alkmaar, The Netherlands
Group memberships: Documentation Team, Members
Show profile · Link to this post
I published recently a plugin that implements this feature. It let you define in the page the next and previous page with:

<- namespace:previous_page ^ namespace:startpage ^ namespace:next page ->


see for more info and features: https://www.dokuwiki.org/plugin:docnavigation
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-05-23, 05:22:15 (UTC +02:00)