<$mt:EntryAuthorLink$>

Outputs a linked author name suitable for publishing in the 'byline' of an entry.

Attributes:

  • new_window

    If specified, the published link is given a target attribute of '_blank'.

  • show_email (optional; default "0")

    If set, will allow publishing of an email address if the URL field for the author is empty.

  • spam_protect (optional)

    If specified, this will apply a light obfuscation of any email address published, by encoding any characters that will identify it as an email address (:, @, and .) into HTML entities.

  • type (optional)

    Accepted values: url, email, archive. Note: an 'archive' type requires publishing of "Author" archives.

  • show_hcard (optional; default "0")

    If present, adds additional CSS class names to the link tag published, identifying the link as a url or email address depending on the type of link published.

This page was last updated on 2008-04-09, 09:45. [Edit]

1 Note

There is a bug with the "type" attribute when using the value of "archive" which does not produce the proper link when used on category archives.

The work around is to manually create this link, which is probably a better solution anyhow:

<a href="<$mt:BlogURL$>/author/<$mt:AuthorBasename separator="-"$>"><$mt:AuthorDisplayName$></a>

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.