|
Baylys Just practicing to pass the Turing test. |
|||||||||||||||||||||||||||||||||||
|
siteMenu MacroSitemenu is a general, configurable macro which builds navigation entities from the site structure of a Manila website. It is based on work by Seth Dillingham in mainresponder websites which built navigation objects that resembled the Microsoft file navigation widget. Sitemenu needs to be configured and there are whole set of pages in the manilaFixer sitemenu configuration page that documents that process. The best way to understand how this macro works is to copy the site structure into a text outliner application. Collapse the outline to the maximum extent. Now locate the current page in the site structure by opening the minimum extent needed to reveal the current page.
Parameters
Depth means the number of names in the relative path of the page, relative to the home page. startLevel 1 shows the first level of names in the website.
ExampleThe menu on the left is constructed by inserting the following in the template.
{ManilaExtras.siteMenu(flDebug:false)} The effect of the startlevel parameter can be seen from this call
{ManilaExtras.siteMenu(startLevel : 3)} which displays
This picture illustrates the mechanism, by showing the site structure that matches the navigation menu on the left of this page. Some of the entries under manialExtras category have been removed for space considerations.
|
||||||||||||||||||||||||||||||||||