Powered by MediaWiki
Personal tools

Tag item categories

From b2evolution manual

Jump to: navigation, search

List all the category names.

[edit] Example

<source lang="php">

 $Item->categories( array(
    'before'          => ' ',
    'after'           => ' ',
    'include_main'    => true,
    'include_other'   => true,
    'include_external'=> true,
    'before_main'     => ,
    'after_main'      => ,
    'before_other'    => ,
    'after_other'     => ,
    'before_external' => '',
    'after_external'  => '',
    'separator'       => ', ',
    'link_categories' => true,
    'link_title'      => '#',
    'format'          => 'htmlbody',
 ) );

</source>

[edit] Parameters

Name Default Usage
before (1 space) Displayed before category list.
after (1 space) Displayed after category list.
include_main true True, if include main category in the list.
include_other true True, if include other categories in the list.
include_external true True, if include external categories in the list.
before_main (no space) String to display before the main category.
after_main (no space) String to display after the main category.
before_other (no space) String fo display before other categories
after_other (no space) String fo display after other categories
before_external (no space) String fo display before external categories
after_external (no space) String fo display after external categories
separator ', ' Separator between categories.
link_categories true True, if display categories links.
link_title '#' 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. If 'link_title' => '#', then default title will be displayed.
format 'htmlbody' Format to output.

[edit] Return value

This tag displays content only, it does not have a return value.