DokuWiki

It's better when it's simple

User Tools

Site Tools


breadcrumbs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
breadcrumbs [2009-07-14 16:48] 192.16.199.22breadcrumbs [2021-10-02 19:41] (current) – [Configuration] -PSi-
Line 1: Line 1:
 ====== Breadcrumbs ====== ====== Breadcrumbs ======
  
-In [[DokuWiki]] you never get lost because you always leave some breadcrumbs behind which show you the way back. Unlike in the [[http://www.gutenberg.net/etext01/grimm10.txt|fairy tale]] there are no birds in DokuWiki. ;-) +In [[DokuWiki]] you will never get lost because you always leave some breadcrumbs behind which show you the way back.
  
 ===== Breadcrumb Types ===== ===== Breadcrumb Types =====
Line 10: Line 9:
 ==== Tracking Breadcrumbs ==== ==== Tracking Breadcrumbs ====
  
-This is the default. Breadcrumbs display a list of pages you just visited in a wiki. This makes most sense for pages with a flat [[namespace]] hierarchy. Tracking Breadcrumbs are prefixed with the word ''trace:>>''.+This is the default. Breadcrumbs display a list of pages you just visited in a wiki. This makes most sense for pages with a flat [[namespace]] hierarchy. Tracking Breadcrumbs are prefixed with the word ''Trace• ''.
  
 The number of tracking breadcrumbs to be shown can be set with the [[config:breadcrumbs]] option. The number of tracking breadcrumbs to be shown can be set with the [[config:breadcrumbs]] option.
Line 19: Line 18:
  
 Hierarchical breadcrumbs can be enabled with the [[config:youarehere]] option. Hierarchical breadcrumbs can be enabled with the [[config:youarehere]] option.
 +
 +===== Configuration =====
 +  * [[config:breadcrumbs]] Set to 0 to disable it.
 +  * [[config:youarehere]]
 +
 +==== Breadcrumb Prefixes ====
 +
 +  * The text blocks ''Trace:'' for [[#tracking breadcrumbs]] and ''You are here:'' for [[#hierarchical breadcrumbs]] (including the punctuation character) prefixing the breadcrumbs cannot be customized overally by means of the [[plugin:config|Configuration Manager]].
 +  * How and where the breadcrumb block is rendered is mainly the responsibility of the template.
 +  * The [[template]] [[template:mikio]] with a highly customizable [[template:mikio#configuration]] has a setting ''breadcrumbPrefixText'' for your customization: Note though that this is only a single prefix used for all [[#breadcrumb types]] and not individually per [[#hierarchical breadcrumbs]] and [[#tracking_breadcrumbs]].
 +  * If you'd like to customize it in your [[plugin]] of choice
 +    * ask the author, to make it customizable,
 +    * or find the string in the template and overwrite it as a quick hack to get what you want
 +    * or alternatively try to see what the [[localization]] has to offer in that regard.
 +
  
 ===== Development ===== ===== Development =====
Line 24: Line 38:
 The breadcrumbs are stored in the user session. [[Template]] developers should make sure to provide space for both types of breadcrumbs by using the ''tpl_breadcrumbs()'' and ''tpl_youarehere()'' functions. The breadcrumbs are stored in the user session. [[Template]] developers should make sure to provide space for both types of breadcrumbs by using the ''tpl_breadcrumbs()'' and ''tpl_youarehere()'' functions.
  
-===== Problems ===== 
-By setting some options in the php.ini file, breadcrumbs doesn't work anymore - it shows only the last visited page, not the requested 10 pages. After removing the php.ini, everything works fine. [Dani, 2008-09-13] 
breadcrumbs.1247582901.txt.gz · Last modified: 2009-07-14 16:48 by 192.16.199.22

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