+

Search Tips   |   Advanced Search


Use an alternate design tag

Use an alternate design tag to display a different component based on the type of item that a navigator or menu is rendering.

For example: A navigator will work with both site areas and content items. The alternate design component can be configured to display one library component if the item that the navigator is rendering is a site area, and another if it is not. This configuration is done by setting the "type" attribute in the alternate design tag. If a type value is not entered, it defaults to "any", which means that the library component will be applied if the item is either a site area or a content.

The two attributes "normal" and "highlight" refer to library components. The value that is assigned to them is the name of the component in the component library. By default, the "normal" attribute value is used to apply a library component to the item. If the "highlight" attribute is specified, the component that the highlight attribute refers to will be applied to the item if the item is in the site path of the current content. For example: if the item that the alternate design is being applied to is the content page that was accessed in the URL, the "highlight" library component will be used.

The alternate design tag can refer to any component in the component library. If it refers to a rich text component in the component library, it is possible for this rich text component to contain placeholder tags that refer to the current item.

<alternatedesign type=" " normal=" " highlight=" " start=" " end=" " />
<alternatedesign Opens a tag.
type=" " Type is either "sitearea", "content" or "Any". ("Any" means both "sitearea" and "content".)
normal=" " Enter the name and library of the component being referenced.

For example, normal="library/name". To use the library specified in the URL of the current page, use normal="./name"

If you specify normal="./name", the library name will not appear in your presentation template or element design. The actual path will not be resolved until the item is rendered.

highlight=" " Enter the name and library of the component being referenced.

For example, highlight="library/component" . To use the library specified in the URL of the current page, use highlight="./name"

If you specify highlight="./name", the library name will not appear in your presentation template or element design. The actual path will not be resolved until the item is rendered.

start=" "

end=" "

The Start and End attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory.
/> This closes the tag.


Parent topic:

Creating Web content tags