Creating an alternate design tag
You use an alternate design tag to display a different component based on whether the item that is returned by a menu or navigator is on the current path or not.
About this task
The format of an alternate design tag:
[alternatedesign highlight=" " normal=" " type=" " start=" " end=" " ]
To create an alternate design tag:
Procedure
What to do next
Tag parameters | Details |
---|---|
normal=" " | To use the library that is specified in the
URL of the current page, use normal="./name". Note: If
you specify normal="./name", the library
name does not appear in your presentation template or element design.
The actual path is not resolved until the item is rendered.
|
highlight=" " | To use the library that is specified in the
URL of the current page, use highlight="./name". Note: If
you specify highlight="./name", the
library name does not appear in your presentation template or element
design. The actual path is not resolved until the item is rendered.
|
start=" " end=" " |
The Start and End attributes are used to wrap the data that is returned by a tag within other tags, such as HTML.S These attributes are not mandatory. |
Displaying different code for content items and site areas:
To display different code when you reference content
items or site areas in a menu or navigator, you need to use two alternate
design tags. One for your content items and one for your site areas.
For example:
[AlternateDesign highlight="./currentsiteareacomponent" normal="./othersiteareacomponent" type="sitearea"] [AlternateDesign highlight="./currentcontentcomponent" normal="./othercontentcomponent" type="content"]