space Baylys
Just practicing to pass the Turing test.
space
space
space
space
Developer for Hire!
space
addedValues Plugin
space

Home

What's new

Bayly.Root

space

Bounce suite.

commentit

fingerServer Suite.

hierMenus Plugin

ManilaFixer Plug-in

space
space

Access Control

Attached Documents

Controlpanel Interface

Hourly Hits Chart

Import Functions

manilaExtras Macros

space
space

accessTimestampString Macro

allhourlyHIts Macro

alternateTemplateLink

areaTag Macro

attachedDocuments

bodyTag Macro

breadcrumbs Macro

csActionDict Macro

editorialMenu

getnamedLink Macro

hourlyHits Macro

includenews Macro

insertBaseTag Macro

loginForm

marknonCachable Macros

memberAttribute

messageAttribute Macro

messageCohorts Macro

messageExpiryDate Macro

messageReleaseDate Macro

messageViewers

metaRefresh Macro

pathAtt Macro

pathAttToIncludeMessage Macro

pathDirectiveValue Macro

pathPictureURL Macros

pictureRef Macro

renderOutline Macro

renderScript Macro

SCNSCall Macro

shortCutToMsgNum Macro

shortCutToPictureMsgNum Macro

shortCutURL Macro

siteCrossLink Macro

siteMenu Macro

siteStructureMap Macro

spacepixels Macro

storyAuthor Macro

statsGifPage Macro

embed Macro

space

Obscure Preferences

OPMl undo

TurboCache

Versioning

space

mrdebugger

Navigator Ticker Plugin

Sendmail Suite

TranslateAid plugin

Whois Macro

Cornershop Plugin

Career

edutools Root

Enhancements

Interests

linguist Plugin

Manila

Patches

Patches by Group

Papers

Sales

Sign My Guestbook

User(land) Relations.

Contact Address

Search Baylys

urlchains

space
Join Now
Login
space space space

siteMenu Macro

Sitemenu 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

  • startlevel (optional, default 1)- The depth at which names are displayed
  • anchorClassName (optional, default "sitemenuOther") - the class attribute of a tags built as links
  • flDebug (optional, false) - a debugging flag for the implementor
  • endLevel (optional) - the depth at which traversal stops
  • flProcessMacros (optional, default true) - whether macros in the result should be expanded

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.

Example

The 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

Access Control

Attached Documents

Controlpanel Interface

Hourly Hits Chart

Import Functions

manilaExtras Macros

space

accessTimestampString Macro

allhourlyHIts Macro

alternateTemplateLink

areaTag Macro

attachedDocuments

bodyTag Macro

breadcrumbs Macro

csActionDict Macro

editorialMenu

getnamedLink Macro

hourlyHits Macro

includenews Macro

insertBaseTag Macro

loginForm

marknonCachable Macros

memberAttribute

messageAttribute Macro

messageCohorts Macro

messageExpiryDate Macro

messageReleaseDate Macro

messageViewers

metaRefresh Macro

pathAtt Macro

pathAttToIncludeMessage Macro

pathDirectiveValue Macro

pathPictureURL Macros

pictureRef Macro

renderOutline Macro

renderScript Macro

SCNSCall Macro

shortCutToMsgNum Macro

shortCutToPictureMsgNum Macro

shortCutURL Macro

siteCrossLink Macro

siteMenu Macro

siteStructureMap Macro

spacepixels Macro

storyAuthor Macro

statsGifPage Macro

embed Macro

Obscure Preferences

OPMl undo

TurboCache

Versioning

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.

siteMenu Hierarchy: