Aug18

MTIfNonZero: Undocumented Movable Type template tag

Movable Type 3.0 introduced the MTIfNonZero template tag. If you would like to take action in your template only if a tag has a non-zero entry, use MTIfNonZero for valid XHTML. Example: <MTIfNonZero tag="MTEntryCommentCount"> <ol> <MTComments> <li><MTCommentAuthorIdentity> wrote something.</li> </MTComments> </ol> </MTIfNonZero> MTIfNonZero tag is currently not listed in the Movable Type template tag documentation but should be and it works.

1 Comments

Commentary on "MTIfNonZero: Undocumented Movable Type template tag":

Subscribe to new comments

  1. Author Profile Page Pete o' Fun on October 25, 2005 at 9:24 PM wrote: #

    It's been staring me in the face for so long, and I never noticed! It's used by default in the trackback section, but no in the comments! Thanks for verifying.

Add a comment

Some comments may be placed in a moderation queue to ensure topical relevancy. You may contact author Niall Kennedy directly if you prefer to comment privately.


(not published)



Niall Kennedy Niall Kennedy is a web technologist in San Francisco, California in the United States. I am very interested in the world of... MORE »

Search this weblog:

Subscribe:

Latest feature: Widget development

Archives: Popular Categories