Tag Definitions %PATH%

Creates a list by traversing ancestors of the current page

Displays a list of ancestral pages starting from or ending at the current page. This tag is mostly used to create crumbpaths or navigation paths.

Attribute Definitions
ParameterTypeDescription
typeul
ol
dl
The list type that is rendered. Any type of valid XHTML list can be used here.
classStringThe 'class' attribute to add to the rendered HTML tags as determined by type.
idStringThe 'id' attribute to add to the rendered HTML.
startitemStringThe first item to be displayed from the list of items found, default is '1'
maxitemsStringThe maximum number of items to be rendered from the list. Default value is 100.
itemtemplateStringThe snippet that is used to render each item in the list.
firstitemtemplateStringThe snippet that is used to render the first item in the list.
lasttemtemplateStringThe snippet that is used to render the last item in the list.
directionasc
desc

Determines the direction of items rendered into the list.

asc: The topmost ancestor is rendered at the top of the list followed by nearer ancestors. The current page is rendered at the bottom of the list.

desc: The current page is rendered at the top of the list followed by the ancestors.

Example

In this example a list of ancestors is created whereby the last item uses a different snippet:

  1. %PATH(startitem=1, class=path, type=ul, maxitems=8, direction=asc, itemtemplate=pathlink, lastitemitemplate=pathlink_last)%


See Also:

Video Guides

How To...

Tag Definitions