Link
Generates the absolute URL to an index template or specific entry in the system.
NOTE: Only one of the ‘template’, ‘identifier’ and ‘entry_id’ attributes can be specified at a time.
Attributes:
- template
The name of the index template.
- identifier
A template identifier.
- entry_id
The numeric system ID of the entry.
- with_index (optional; default “0”)
If not set to 1, remove index filenames (by default, index.html) from resulting links.
- blog_id
MT5.x only. The numeric system ID of the blog.
Examples:
<a href="<mt:Link template="About Page">">My About Page</a> <a href="<mt:Link entry_id="221">">the entry about my vacation</a> <a href="<mt:Link identifier="main_index">">Home</a>
Alex E. Schneider on June 10, 2009, 9:32 a.m. Reply
The template attribute doesn’t seem to be case-sensitive. <mt:Link template=”javascript” /> and <mt:Link template=”javaScript” /> will both generate a URL to the same template.
Mark Carey on March 31, 2011, 6:05 p.m. Reply
I just checked the 4.35 code for this tag. The “identifier” argument is totally ignored. There seems o be a bug.
You can still link by identifier, but you must use the “template” argument. This may not make sense, but looking at the code, it will do what you want.