AssetLink
By Byrne Reese and posted in Appendix: Template Tags on December 31, 1969.
Returns HTML anchor tag for the asset in context. For example, if the URL of the asset is http://example.com/image.jpg, the tag returns <a href="http://example.com/image.jpg">image.jpg</a>. Attributes: new_window (optional; default "0") Specifies if the tag generates 'target="_blank"' attribute to the anchor tag....
Read more
BlogHost
By Byrne Reese and posted in Appendix: Template Tags on December 31, 1969.
The host name part of the absolute URL of your blog. If your blog’s Site URL is set to http://www.my-site.com/my-awesome-blog/, then the BlogHost tag will return http://www.my-site.com/. Attributes exclude_port (optional; default “0”): If a port is specified in the Site...
Read more
HTTPContentType
By Byrne Reese and posted in Appendix: Template Tags on December 31, 1969.
When this tag is used in a dynamically published index template, the value specified to the type attribute will be returned in the Content-Type HTTP header sent to web browser. This content is never displayed directly to the user but...
Read more
TagSearchLink
By Byrne Reese and posted in Appendix: Template Tags on December 31, 1969.
A variable tag that outputs a link to a tag search for the entry tag in context. The tag context is created by either an EntryTags or a Tags block. Like all variable tags, you can apply any of the...
Read more
nofollowfy
By Byrne Reese and posted in Appendix: Template Tag Modifiers on December 31, 1969.
The nofollow attribute is used to indicate how search engines should see the href in the link. The nofollowfy modifier processes the anchor (a) tags from the Template Tag it is applied to and adds a rel attribute of nofollow...
Read more
CustomFieldHTML
By Byrne Reese and posted in Appendix: Template Tags on December 31, 1969.
Returns the html necessary to place this field in a blog-side Create Entry form for the object in context. <$mt:CustomFieldHTML$> See mt:EntryCustomFields for more documentation. Form elements are prefilled with with the default values specified when custom fields are defined....
Read more
Macros
By Brad Choate and posted in Utilities on November 30, 2002.
Use MT to do easy frequently used pieces of information like smilies or favorite links. <MTMacroDefine name="smile1" string=":-)"> <img src="http://kadyellebee.com/icon/smile.gif" height="15" width="15"></MTMacroDefine> <MTMacroDefine name="trk" string=":trk:"> <a href="http://theredkitchen.net" target="_blank">the <span style="color:#c30000;">red</span> kitchen</a> </MTMacroDefine>...
Read more
Validate
By Jacques Distler and posted in Utilities on February 13, 2003.
Validates your templates/documents based on the w3 validator <MTValidate> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title><$MTBlogName$>: <$MTEntryTitle$></title> </head> <body> <h3 class="title"><$MTEntryTitle$></h3> <$MTEntryBody$> <a name="more"></a> <$MTEntryMore$> </body> </html> </MTValidate>...
Read more
RelativeURL
By Stepan Riha and posted in Developer on April 18, 2004.
The built-in URL tags, such as MTEntryPermalink or MTArchiveLink create canonical URLs in the form of http://www.domain.com/blog/index.htm and http://www.domain.com/blog/archives/Photos.htm. Sometimes it is convenient to use relative URLs in the form of index.htm and archives/Photos.htm. This plugin contains tags and a...
Read more
TruncateURL
By Hirotaka Ogawa and posted in Utilities on October 24, 2004.
Lots of built-in MT tags, such as MTEntryPermalink or MTArchiveLink, always generate canonical URLs (e.g. http://www.domain.tld/blog/index.html). It is sometimes inconvenient because generated HTML files grow large and make hard to distinguish between internal links and external links. MTTruncateURL Plugin allows...
Read more