For instance, to display a list of category names, with root categories in bold and subcategories in italics, the following code might be used:
{CATEGORY-BLOCK-BEGIN}
{IF-CATEGORY-IS-ROOT-BEGIN}{CATEGORY-NAME}{ELSE}{CATEGORY-NAME}{IF-CATEGORY-IS-ROOT-END}
{CATEGORY-BLOCK-END}
The result would look like:
Category 1
Subcategory 1-A
Subcategory 1-B
Category 2
Subcategory 2-A
Category 3
Subcategory 3-A
Subcategory 3-B
Alternatively, to create a category block that only displays the "root" categories in underlined text, and skips all subcategories, the following code might be used:
{CATEGORY-BLOCK-BEGIN}
{IF-CATEGORY-IS-ROOT-BEGIN}{CATEGORY-NAME}{ELSE}{NULL}{IF-CATEGORY-IS-ROOT-END}
{CATEGORY-BLOCK-END}
The result would look like:
Category 1
Category 2
Category 3
|