- b2evolution CMS User Manual
- Developer Reference
- Website Skins/Themes
- Skin Tags / API
- Item Tags
- Template Tag: Item Categories
Template Tag: Item Categories
Displays a list of names of all the Categories associated with an Item.
Example
Quick Template
[Item:categories|before=<b>Categories</b>: |separator=, ]
PHP Template
$Item->categories( array(
'before' => ' ',
'after' => ' ',
'include_main' => true,
'include_other' => true,
'include_external'=> true,
'before_main' => '',
'after_main' => '',
'before_other' => '',
'after_other' => '',
'before_external' => '<em>',
'after_external' => '</em>',
'separator' => ', ',
'link_categories' => true,
'link_title' => '#',
'format' => 'htmlbody',
) );
Parameters
Param |
Default |
Usage |
---|---|---|
|
|
Displayed before category list. |
|
|
Displayed after category list. |
|
|
True, if include the main category in the list. |
|
|
True, if include other categories in the list. |
|
|
True, if include external categories in the list. |
|
|
String to display before the main category. |
|
|
String to display after the main category. |
|
|
String fo display before other categories. |
|
|
String fo display after other categories. |
|
|
String fo display before external categories. |
|
|
String fo display after external categories. |
|
|
Separator between categories. |
|
|
True, if display categories links. |
|
|
When the categories for a specific post are displayed, the user can click on these cats to browse them, this is the HREF title displayed there. |
|
|
Format to output. Possible values: |
|
|
Return value
This tag displays content only, it does not have a return value.