Table of Contents

croissant Plugin

Compatible with DokuWiki

anteater, rincewind, angua, adora belle, weatherwax, binky, ponder stibbons, hrun

plugin Change the displayed text in the breadcrumb path

Last updated on
2016-09-07
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.

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

Search and install the plugin using the Extension Manager. 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