Movable Type Documentation

« MTTags | Up | MTTagID »

Chapter Entry Tags

MTTagName

A variable tag that outputs the name of the entry tag currently in context. The tag context is created by either an MTEntryTags or an MTTags block.

Optional attributes

  • quote - Adds double quotes around the any tag name which contains spaces
  • normalize - Returns the normalized version of the tag name stored in the system. The tag "Movable Type" would yield a normalized version of "movabletype".

Like all variable tags, you can apply any of the supported global filters to MTTagName to do further transformations.

Example code

The following prints out a list of tags used on a blog.

<p>
    The following tags are used on this blog: 
       <MTTags glue=", "><$MTTagName$></MTTags>
</p>

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".

You can download the User and Administration Manual here.

Submit Feedback on This Article

Your comments on how we can improve this article are appreciated; but please do not use the feedback form to submit support requests or question. We will not respond to or publish such queries submitted through this form. If you have a technical question or problem, visit Movable Type Support.

Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.