<$mt:ArchiveLink$>

Publishes a link to the archive template for the current archive context. You may specify an alternate archive type with the "type" attribute to publish a different archive link.

Attributes:

  • type (optional)
  • archive_type (optional)

    Identifies the specific archive type to generate a link for. If unspecified, uses the current archive type in context, when publishing an archive template.

  • with_index (optional; default "0")

    If specified, forces any index filename to be included in the link to the archive page.

Example:

When publishing an entry archive template, you can use the following tag to get a link to the appropriate Monthly archive template relevant to that entry (in other words, if the entry was published in March 2008, the archive link tag would output a permalink for the March 2008 archives).

    <$MTArchiveLink type="Monthly"$>
This page was last updated on 2008-06-12, 14:25. [Edit]

4 Notes

Hi, I am trying to change the link in the note's metadata template on the author's name. I would like it to be the author's archive page instead of the author's URL (default). So my point is: is there any way to access that URL else than the block tag ? I guess there could be a tag modifier to apply on but I couldn't find it ?! (documentation unfinished.. :-( ) Any help would be much appreciated! Thanks

Oops! Inserting MT tags doesn't work let me say this again :

Hi, I am trying to change the link in the note's metadata template on the author's name. I would like it to be the author's archive page instead of the author's URL (default). So my point is: is there any way to access that URL else than the (MTArchiveList) block tag ? I guess there could be a tag modifier to apply on (MTAuthorDisplayName) but I couldn't find it ?! (documentation unfinished.. :-( ) Any help would be much appreciated! Thanks

Next time, I'll use the "preview" button :-P

Forgive the lack of formatting -- I'm running into the same issue as Sims attempting to post code. If you de-mangle the snippet below, you can accomplish what you're after:
 
(a href="($MTEntryLink archive_type="Author"$)")($MTEntryAuthorDisplayName$)(/a)
 
It seems a bit strange that there's not a more direct tag to access this path -- perhaps in a future version of MT...

Maybe this defined somewhere, but I could not find it... I have a situation where I want to display a list of categories in two different formats. Sometimes as they do (current default) already. And sometimes as a one line per entry (no limit) sorted by title.
Q1) How do I define the two templates (or sense them within the one template)? Q2) How do I differentiate in the generated link (via this tag?) to identify option 1 or option 2 (and/or option 3)?

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.