|
navtree.wmk - WebMake tag to generate a per-page sitemap |
< use plugin="navtree" />
< navtree name=... sitemap=...
opennode=... closednode=...
thisnode=... thisleaf=...
leaf=... depth=... />
This WebMake plugin provides the navtree tag.
navtree operates similarly to the sitetree tag, but displays only a
subset of all the site's nodes; it will map all of the top-level nodes of the
site, the parent nodes of the current page, their direct children, and the
current page plus it's children up to depth depth. The effect is similar to
a tree-view-based file browser, like Windows Explorer.
This differs from the sitetree tag in that sitetree does not support
displaying the current page's children.
So, for a site like this:
A reference to the site tree on page Section 1 would result in
a site tree like this:
Display of each page's entry in the tree is performed by expanding one of the 5
template content items named in the tag's attributes: closednode,
opennode, thisnode, thisleaf or leaf. See the sitemap tag
documentation for more details on how to use these (note however that the
is_node variable is not available for sitetrees).
sitemap tag's node attribute,
this content item must include a reference to the list variable, which will
contain all the entries for the pages beneath it in the hierarchy.
opennode if not specified. It may be used to generate
''multirooted'' tree (a forest). In that case you should create a dummy
root content (it upsets sitemap code if you dont have one single root) and
create rootnode template to output only the list with apropriate
decorations.
depth > 0, thisnode must include
a reference to the list variable.
sitetree tag). The default is 1 which means to list direct
children of the current node.
Following variables (content items) are defined for use in templates:
title metadatum of the node.
score metadatum of the node.
$ (url)).
level, except that
current page is considered root. -1 for nodes not descendant from current
page.
depth above the current node and depth - sublvl for the
descendants of the current node.
Thanks to Jan Hudec <bulb /at/ ucw.cz>, who provided this tag.
|
navtree.wmk - WebMake tag to generate a per-page sitemap |