This is an old revision of the document!
Table of Contents
croissant Plugin
Compatible with DokuWiki
anteater, rincewind, angua, adora belle, weatherwax, binky, ponder stibbons, hrun
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
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
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~~
.
Change Log
- Version upped (2016-09-07 15:49)
- Remove outdated code (2016-09-07 15:48)
- Add capsuling <span> to enable better styling (2016-09-07 15:46)
- Add syntax to not show breadcrumbs on page (2016-09-07 15:45)
- Version upped (2016-07-21 09:13)
- Version upped (2016-07-06 21:06)
- Version upped (2016-02-03 18:37)
- Merge pull request #2 from splitbrain-forks/php7-signature (2016-02-02 13:11)
Discussion
[solved] Doesn't work on Rincewind
Thanks, just what I was looking for! Any way to get this working correctly on Rincewind (and possibly the upcoming release)? — Eivind M. 2011/11/04 16:26
Works fine here. How does it misbehave? — Adrian Lang 2011/11/06 11:27
Sorry, I forgot to subscribe and check back. I was actually on a newer Git version, but on the new RC (clean install) I get the same error:
Warning: Missing argument 3 for resolve_pageid(), called in /dokuwiki-rc/lib/plugins/croissant/syntax.php on line 68 and defined in /dokuwiki-rc/inc/pageutils.php on line 443
The code fixed on 2013-02-20. So far in my installation, the croissant plugin has been working fine with Rincewind, Angua, and Adora Belle, Weatherwax. — s.sahara 2013-05-19