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.
| Parameter | Type | Description |
|---|---|---|
| type | ul ol dl | The list type that is rendered. Any type of valid XHTML list can be used here. |
| class | String | The 'class' attribute to add to the rendered HTML tags as determined by type. |
| id | String | The 'id' attribute to add to the rendered HTML. |
| startitem | String | The first item to be displayed from the list of items found, default is '1' |
| maxitems | String | The maximum number of items to be rendered from the list. Default value is 100. |
| itemtemplate | String | The snippet that is used to render each item in the list. |
| firstitemtemplate | String | The snippet that is used to render the first item in the list. |
| lasttemtemplate | String | The snippet that is used to render the last item in the list. |
| direction | asc 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:
%PATH(startitem=1, class=path, type=ul, maxitems=8, direction=asc, itemtemplate=pathlink, lastitemitemplate=pathlink_last)%