Powered by MediaWiki
Personal tools

Tag item tags

From b2evolution manual

Jump to: navigation, search

Display tags associated with item.

These tags can be edited using edit post form in 'Tags' field.

[edit] Example

$Item->tags( array(
     'before'    => '<div>Tags: ',
     'after'     => '</div>',
     'separator' => ', ',
     'links'     => true
  ) );

[edit] Parameters

Name Default Usage
before '<div>Tags: ' Displayed before tags.
after '</div>' Displayed after tags.
separator ', ' Separator between tags.
links true True if show tag links instead false.

[edit] Return value

This tag displays content only, it does not have a return value. Typical output would be 'Tags: tag1, tag2, tag3'