Categories menu

<< Cliquez pour afficher la table des matières >>

Navigation:  Templates >

Categories menu

Displaying of this section can be configured in categorymenu.tpl. In this section, you configure the output menu of the categories for publications.

 

[root] text [/root]

Displays a text between them when initially generating the menu template. These tags can be used to create the appearance of the menu. For example, to add some HTML elements, or elements which are not included in a category list.

[item] text [/item]

Represents a single category list item when forming category menu list. Text between these tags is displayed with HTML appearance customized for each list item.

[sub-prefix] text [/sub-prefix]

Displays text between them as a subcategory prefix if a category is parental and it has subcategories.

[sub-suffix] text [/sub-suffix]

Displays text between them as a subcategory suffix if a category is parental and it has subcategories.

{sub-item}

Represents subcategories in a parent category if it has subcategories. This tag is used only within [item] [/item] tags.

{id}

Displays category's ID

{name}

Displays a category name. This tag is used only within [item] [/item] tags.

{url}

Displays a category URL. This tag is used only within [item] [/item] tags.

{icon}

Displays a category icon. This tag is used only within [item] [/item] tags.

{news-count}

Displays a number of articles of the category. This tag is used only within [item] [/item] tags.

[active] text [/active]

Displays a text between them if a viewed category or article is of the category from the menu. This tag is used only within [item] [/item] tags and is usually used to emphasize active categories form the menu.

[not-active] text [/not-active]

The enclosed text is displayed if the viewed category or article does not belong to a menu category. This tag can only be located inside the [item] [/item] tags and is used, for example, to output some information (e.g. links) only for non-active menu categories.

[isparent] text [/isparent]

Displays a text between them if a category is parental and contains subcategories. This tag is used only within [item] [/item] tags.

[not-parent] текст [/not-parent]

Displays embedded text if category is not a parent category and don't have any subcategories

[is-children] текст [/is-children]

Displays embedded text if a category has a parent category

[not-children] текст [/not-children]

Displays embedded text if a category has not parent category

{description}

Displays category description

[description] текст [/description]

Displays embedded text if description is specified

[not-description] текст [/not-description]

Displays embedded text if description is not specified

 

Here you can see the example of a simple category menu template based on ul and li HTML tags:

 

[root]<ul class="catmenu">[/root]

[item]

 <li><a href="{url}">{name}</a>

 [sub-prefix]<ul>[/sub-prefix]{sub-item}[sub-suffix]</ul>[/sub-suffix]

 </li>

[/item]

[root]</ul>[/root]