====== DocNavigation Plugin ====== ---- plugin ---- description: Add navigation links to previous and next page at the top and bottom of wiki page author : Gerrit Uitslag email : klapinklapin@gmail.com type : syntax, action lastupdate : 2024-02-08 compatible : Hogfather, Igor, Jack Jackrum, Kaos depends : conflicts : bloglinks similar : pagenav tags : navigation, listing, browse downloadurl: https://github.com/Klap-in/dokuwiki-plugin-docnavigation/archive/master.zip bugtracker : https://github.com/Klap-in/dokuwiki-plugin-docnavigation/issues sourcerepo : https://github.com/Klap-in/dokuwiki-plugin-docnavigation/ donationurl: screenshot_img : :plugin:docnavigation_pagenav.png ---- ===== Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Usage ===== The syntax defines which pages are referred to as previous and next pages. A start page or page with an overview can be provided in between. <- namespace:previous_page ^ namespace:startpage ^ namespace:next page -> or, alternatively, only different syntax (for example needed in combination with [[ckgedit]] plugin) << namespace:previous_page ^ namespace:startpage ^ namespace:next page >> And at the start page an auto-generated table of contents can be put using ===== Syntax ===== === Page navigation === Urls are shown with default link names derived from url or [[config:useheading]] setting. <-namespace:previous^namespace:startpage^namespace:next-> Urls are shown with the given names. <-previous|Your previous page^startpage|Overview^other_page|Navigate to next page -> Example of navigation added by the DocNavigation Plugin. Here the [[config:useheading]] config is enabled such that the page headings are used as link name. {{:plugin:docnavigation_pagenav.png|Page with navigation links}} === Table of contents generated from linked pages === A Table of Contents of the linked pages can be created with ''''. possible options: ^Option ^ Description^ |''start='' |Pageid of the first page with page navigation, if left out the page navigation is searched on the current page.| |''includeheadings=-''|Includes the given heading levels of a page in the table of content. e.g ''2-3'' Default: ''2'' (levels are numbered from 1 to 5) | |''hidepagelink=<0 or 1>'' |Hide the page links, but shows default the first two levels of the table of content. With ''includeheadings'' setting the number of levels can be changed. If only ''includeheadings'' is used, the page links are shown, which can result in duplicated titles if level 1 is shown.| |''useheading=<0 or 1>'' |Overrules the 'navigation' case of the [[config:useheading]] setting.| ===== Development ===== === Change Log === {{rss>https://github.com/klap-in/dokuwiki-plugin-docnavigation/commits/master.atom date}} === Bugs and feature requests === Please report all your bugs and feature requests at the [[https://github.com/Klap-in/dokuwiki-plugin-docnavigation/issues|issue tracker]].