LOGO

SourceForge.net Logo

relatives

menu system relatives

This page illustrates how the 'relative' tokens work.

Before building each page, docTree makes a tree from the sitemap file. then it looks in the page to find out what the page needs to know about its position it the tree. Then it can calculate, the parent of the page, the children, the siblings, and the path you must take down all the branches of the tree to get to the page.

So while the docTree template system only really supports small websites which have two levels, menus and submenus, you can stretch this by putting these other navigational aids in each page.

You can control how the elements appear, whether horizontally, as a text list (inline), or as a vertical list (blocks). Firstly, you can do it in the style sheet (defaults are provided), but for an inline list you can also insert the separating characters at the end of the token.

There is a limitation that you can only show one variation of each token on the page, so the siblings of this page, contain more examples. This page contains the 'pure tokens'.

<!--CHILDREN--> renders as

<!--PATH--> renders as
menu system relatives

(the extra --> comes from the stylesheet)

<!--PREVNEXT--> renders as

page 1 of 3
(click next to see more uses of navigational tokens)

^ back to top

mail matthew