DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:croissant

croissant Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" yes

plugin Change the displayed text in the breadcrumb path

Last updated on
2016-09-07
Provides
Syntax
Repository
Source

Tagged with breadcrumb

The plugin allows you to change the displayed text of a page in the breadcrumb path.
Why? Sometimes the main headline is too long, with this plugin you can create nice breadcrumbs and have “meaningful” H1 headlines.

Installation

A CosmoCode Plugin

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

In your template, replace the current tpl_youarehere invocation with

<?php
    $croissant =& plugin_load('syntax', 'croissant');
    if ($croissant !== null) {
        $croissant->tpl();
    } else {
        tpl_youarehere();
    }
?>

Syntax

On a wiki page, write ~~bc:CUSTOMTITLE~~ to show CUSTOMTITLE on the breadcrumb instead this page's title/pagename.

Additionally you can write ~~nobc~~ to not show the breadcrumbs on that page.

Development

Change Log

Discussion

plugin/croissant.txt · Last modified: 2016-10-14 15:28 by andi