
<-- PLEASE DO NOT EDIT THIS TOPIC It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated. Instead, you could check your fix in, raise a bug in the Bugs web, or mail the author. --> BreadCrumbsPluginOn this page:
DescriptionThis plugin helps you to locate where you are, and shows you how you can escape from there using breadcrumbs navigation. Two types of breadcrumb are supported; "location" breadcrumbs, which show you where you are in the site hierarchy, taking into account topic parent relationships, and "path" breadcrumbs, that simply show you where you have been, but without going in circles. In a way, location breadcrumbs have always been supported using theMETA{"parent"} variable to display the list of parent topics. Since version
the advent of hierarchical, subwebs breadcrumbs support of
the standard engine does not allow the display of parent webs as part of of the location
breadcrumbs.
Path breadcrumbs show you which topics you visited to reach the current topic. If you revisit a topic you visited earlier, the path is trimmed back to that topic, so it gives you a sort of visual history of where you have been on the site. Path breadcrumbs require that you have session support enabled.
The plugin also gives a great deal of flexibility in deciding which
parts of the breadcrumbs should be rendered, and how each
individual breadcrumb is displayed.
ConfigurationWhile most settings are given as part of theBREADCRUMBS tag, there are a few settings
to improve rendering breadcrumbs.
Enabling Path breadcrumbsTo switch on recording the path breadcrumbs, set theBREADCRUMBSPLUGIN_RECORDTRAIL to on.
Otherwise the click path of the user won't be recorded and the type setting to the
BREADCRUMBS will result in an undefined behaviour.
Displaying TopicTitlesTopicTitles are a concept introduced by the Foswiki:Extensions/DBCachePlugin. These are stored in a topic in theTOPICTITLE preference variable or in a formfield
'TopicTitle ' of a forms attached to the topic. If a TopicTitle is
defined for a topic, it will be displayed in the breadcrumbs instead of the
normal WikiWord topic name. For efficiency it is recommended to install the
Foswiki:Extensions/DBCachePlugin to determine the TopicTitle.
Syntax%BREADCRUMBS%, %BREADCRUMBS{"<web>.<topic>" ...}%
Parameters:
Each of the above format strings (format, header, footer, separator) may contain special variables:
Examplesdefault%BREADCRUMBS%System BreadCrumbsPlugin path
%BREADCRUMBS{type="path"}%
breadcrumbs to a non-existent location
%BREADCRUMBS{
"Web1/Web2/Web3.Topic"
format="$name"
separator=" » "}%
Web1 » Web2 » Web3 » Topic
recurse="off"
%BREADCRUMBS{
"Web1/Web2/Web3.Topic"
format="$name"
separator=" » "
recurse="off"}%
Web3 » Topic
recurse="once"
%BREADCRUMBS{"Web1/Web2/Web3.Topic"
format="$name"
separator=" » "
recurse="once"}%
Web2 » Web3 » Topic
include
%BREADCRUMBS{"Web1/Web2/Web3.Topic"
format="$name"
separator=" » "
include="Web(1|3).*"}%
Web1 » Web2 » Web3
exclude
%BREADCRUMBS{"Web1/Web2/Web3.Topic"
format="$name"
separator=" » "
exclude="Web2"}%
Web1 » Web2 » Web3 » Topic
Plugin Installation InstructionsYou do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server. Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install". If you have any problems, or if the extension isn't available inconfigure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Plugin Info<-- provided for compatibility only
|
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.