_default
Type: modifier
The global _default tag filter outputs when the tag produces an zero-length, empty string.
Some tags have a default attribute, but the _default modifier works globally for all tags.
Example ΒΆ
Add default keywords:
<$mt:EntryKeywords _default="default keywords go here"$>
If an author leaves a entry title empty, you can force it to have a title:
<$mt:EntryTitle _default="Untitled"$>
This page was last updated on 2008-09-02, 10:56.
Leave a note
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.