The Movable Type User Manual

NOTE: This documentation is for Movable Type 3.2. If you are using a newer version, please see the documentation for Movable type 3.3x or Movable Type Enterprise.

« Publishing Content When a Conditional is False | Up | Formatting a Date »

Chapter 3: Templates and Layout

Applying a Global Filter to Tag Output

Problem

You want to modify the output of a tag.

Solution

Use a global filter on the tag.

Discussion

Global filters are special attributes that can be applied to any tag to transform its output before publishing. For instance if you wanted to display entry titles in all capital letters you could apply the upper_case global filter like so:

 <$MTEntryTitle upper_case="1"$>

Multiple filters may be used and follow an internal system-designated order for processing, not the order in which they appear.

For a list and description of all built-in global filters see Appendix B and Appendix A.

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.