META{"parent"}
variable to display the list of parent topics. Since version 4.x TWiki also supports hierarchical subwebs, but the breadcrumbs support of TWiki 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.
BREADCRUMBS
tag, there are a few settings to improve rendering breadcrumbs.
BREADCRUMBSPLUGIN_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.
TOPICTITLE
preference variable or in a formfield 'TopicTitle ' of a TWikiForm attached to the topic. If a TopicTitle is defined for a topicm, it will be displayed in the breadcrumbs instead of the normal WikiWord topic name. For efficiency it is recommended to install the TWiki:Plugins/DBCachePlugin to determine the TopicTitle.
%BREADCRUMBS%, %BREADCRUMBS{"<web>.<topic>" ...}%
Parameters: <web>.<topic>
: the location to which breadcrumbs should be generated (type="location" only, ignored if type="path") defaults to the current topic
type
: "location" (the default) or "path"
header
: format string prepended to the output result
format
: format string to render one item on the breadcrumbs path (defaults to '[[$webtopic][$name]]')
topicformat
: format string for any topic items on the path; for example, parent topics. Defaults to the same as format
.
footer
: format string appended to the output result
separator
: format string to be put between items (defaults to one space char)
include
: regular expression that items must match to be part of the path
exclude
: regular expression that items must not match to be part of the path
recurse
: (type="location" only)can be one or more of the following values (comma separated) to decide which parts of the breadcrumbs path should be included (defaults to 'on'): on
: include all parent webs and all parent topics
off
: include only the current web and the current topic
weboff
: don't recurse on webs, include only the current web
topicoff
: don't recurse on topics, include only the current topic
webonce
: include the next parent web but not the parent web's parent web
topiconce
: include the next parent topic but not the parent topic's parent topic
once
: short formf of webonce, topiconce
spaceout
: space out WikiWords inserting a separator (defaults to 'off')
spaceoutsep
: separator to be used when spacing out WikiWords
maxlength
: maximum length of a breadcrumbs before inserting an ellipsis in the middle, 0 meaning disable this feature (defaults to 0)
ellipsis
: character sequence to be inserted when reducing the maxlength of the breadcrumbs (defaults to ' ... ')
$name
: the name of the breadcrumb, this is the topic name or the web name having its parent web part being stripped off (that is Bar
instead of Sandbox/Foo/Bar
)
$webtopic
: the full web.topic
of the breadcrumb (twiki syntax)
$target
: the full web/topic
of the breadcrumb (url syntax)
$name
: name of the breadcrumbs item this is the TopicTitle, spaced out or normal topic name topic
$n
: replaced with a newline char (\n)
$percnt
: replaced with a percent char (%)
$dollar
: replaced with a dollar char ($)
$nop
: removed from the format string before expanding common TWiki variables
%BREADCRUMBS%TWiki BreadCrumbsPlugin
%BREADCRUMBS{type="path"}%
%BREADCRUMBS{ "Web1/Web2/Web3.Topic" format="$name" separator=" » "}%Web1 » Web2 » Web3 » Topic
%BREADCRUMBS{ "Web1/Web2/Web3.Topic" format="$name" separator=" » " recurse="off"}%Web3 » Topic
%BREADCRUMBS{"Web1/Web2/Web3.Topic" format="$name" separator=" » " recurse="once"}%Web2 » Web3 » Topic
%BREADCRUMBS{"Web1/Web2/Web3.Topic" format="$name" separator=" » " include="Web(1|3).*"}%Web1 » Web2 » Web3
%BREADCRUMBS{"Web1/Web2/Web3.Topic" format="$name" separator=" » " exclude="Web2"}%Web1 » Web2 » Web3 » Topic
configure
interface (Go to Plugins->Find More Extensions) .zip
or .tgz
archives
perl <module>_installer
)
configure
and enable the module, if it is a plugin.
,v
files in your existing install (take care not to lock the files when you check in)
|
|||||||||||||||||||||||||||||||||||||||||||||||
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.