Not a developer? Go to MovableType.com

Documentation

EntryPermalink

An absolute URL pointing to the archive page containing this entry. An anchor (#) is included if the permalink is not pointing to an Individual Archive page.

Most of the time, you’ll want to use this inside a hyperlink. So, inside any Entries loop, you can make a link to an entry like this:

    <a href="<$mt:EntryPermalink$>"><$mt:EntryTitle$></a>

Attributes:

  • type or archive_type (optional)

    Specifies an alternative archive type to use instead of the individual archive.

  • valid_html (optional; default “0”)

    When publishing entry permalinks for non-individual archive templates, an anchor must be appended to the URL for the link to point to the proper entry within that archive. If ‘valid_html’ is unspecified, the anchor name is simply a number— the ID of the entry. If specified, an ‘a’ is prepended to the number so the anchor name is considered valid HTML.

  • with_index (optional; default “0”)

    If assigned, will retain any index filename at the end of the permalink.


EntryPermalink supports a whole bunch of additional attributes to help format the output of the tag. Using those attributes, you can escape the content so it shows up correctly in HTML, JavaScript, PHP, XML or other forms of output.

In the past, mt:EntryPermalink has been known as MTEntryPermalink, too. If you want to link to an Entry in one of the other archives it appears in, the mt:EntryLink tag will let you link to that entry as part of a Monthly archive, a Category archive, an Author archive or many other contexts.

Back

Leave a Comment