<$mt: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.

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>
This page was last updated on 2008-09-03, 11:19.  

Leave a note

Have a question, please use the MT Forums. Notes sumbitted here should pertain to tips & hints regarding documentation. Your note may be removed once it's contents has be integrated into the body of the page.