Not a developer? Go to MovableType.com

Documentation

EntryTags

A container tag used to output information about the entry tags assigned to the Entry in context.

Note that this template tag will not retrieve any private entry tags assigned to the Entry (tags starting with “@”).

Attributes

  • glue: A text string that is used to join each of the items together.

    <mt:EntryTags glue=", "><mt:TagName></mt:EntryTags>
    

    would print out each tag name separated by a comma and a space.

Example

The following code can be used anywhere Entries can be used. It prints a list of all of the tags assigned to each entry returned by Entries glued together by a comma and a space.

To avoid printing out the leading text when no entry tags are assigned you can use the EntryIfTagged conditional block to first test for entry tags on the entry. You can also use the EntryIfTagged conditional block with the tag attribute to test for the assignment of a particular entry tag.

<mt:EntryIfTagged>
    The entry "<mt:EntryTitle>" is tagged:
    <mt:EntryTags glue=", "><mt:TagName></mt:EntryTags>
</mt:EntryIfTagged>
Back

1 Comment

François Nonnenmacher

François Nonnenmacher on July 11, 2010, 8:42 p.m. Reply

Note that this tag will not retrieve any private tag (tags that start with @).