Welcome to MTTags.com. Hopefully, you'll discover that this a really easy place to find information about Movable Type Template Tags. If you think we could be doing something better, please let us know! If this is your first time here, be sure to stop by the information desk, because we've got a growing todo list that might already include what you were about to suggest.

<MTEntryTags>

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

Optional attributes

  • glue - A text string that is used to join each of the items together. For example
    <MTEntryTags glue=", "><$MTTagName$></MTEntryTags>
    would print out each tag name separated by a comma and a space.

Example code

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

<MTEntries>

    The entry "<$MTEntryTitle$>" is tagged:
        <MTEntryTags glue=", "><$MTTagName$></MTEntryTags>
</MTEntries>

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

See the relevant section of Chapter 5.4 in the User and Administration Manual entitled "Using Template Modules" for more examples related to entry tags, including the creation of "tag clouds".

Also, please see the important performance note regarding where MTTags lists are best placed for optimum performance, also in Chapter 5.4 of the User and Administration Manual, under "Eliminating redundant publishing".