<tpl:EntryTags>

Used in a <tpl:Entries> loop or in the post.html file, this block loops on all the tags used in an article.

Attributes

type

Selects the data type displayed. By default, tags are displayed.

sortby

By default, tags are sorted alphabetically. This attribute modifies this behaviour by taking the following value:

  • count : sorts by tag number of uses

order

Indicates in what order the tags must be sorted. Possible values are asc (ascending) and desc (descending). Default sorting is ascending.

Example

This example displays the tags of a given article.

<tpl:EntryTags>
  <tpl:TagsHeader><ul class="post-tags"></tpl:TagsHeader>
    <li><a href="{{tpl:TagURL}}">{{tpl:TagID}}</a></li>
  <tpl:TagsFooter></ul></tpl:TagsFooter>
</tpl:EntryTags>

Wiki powered by Dokuwiki.