Tag Definitions %LISTITEMCLASS%
Apply custom classes to list items
This tag allows the End User to apply Class values to pages, which are invoked in lists displaying links to those pages. The value is applied to the List Item Class field (accessed via a page's properties screen) and is based upon selectors pre-defined within a style. Note that an End User will not know the class values available unless documented by the Reseller.
Note that if this tag is used in a snippet, any pages that have no class attributes will display an empty class tag (see last rendered code example).
This tag has no attributes.
Example
In this example the List Item Class attribute is used on a List Item snippet, to provide the opportunity for any classes associated with the page to be applied to the link.
<li><a href="%LINK%" class="%LISTITEMCLASS%">%TITLE%</a></li>
RENDERED OUTPUT:
<li><a href="page1.html" class="new_feature">Page 1</a></li>
<li><a href="page2.html" class="updated">Page 2</a></li>
<li><a href="page3.html" class="">Page 3</a></li>