<mt:PageTags>

A container tag which create a context about the assigned tags. Analogous to EntryTags.

Attributes:

  • glue

    A string used to join the output of the separate iterations of this tag.

Example:

Listing out the page's tags, separated by commas:

    <mt:PageTags glue=", "><$mt:TagName$></mt:PageTags>
This page was last updated on 2008-03-29, 00:56.

2 Notes

"Sticky" tags

You can use a tag called, say, @sticky to identify a page or an entry and push it to the top of the list (like a "sticky").

Note that all tags prefixed with @ and (I suspect) other non-alpha characters are ignored during a tag listing

Thus, you could do: <mt:pages tag="@sticky"> -- do something -- </mt:pages>

to give you a listing of all pages tagged with @sticky.

I tried the above and <mt:PageTags><$mt:TagName$></mt:PageTags> in MT5 B2 and it appears not to be working. It prints out an empty string.

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.