Linking to Non-Preferred Archives in Movable Type

| No Comments | No TrackBacks |
It has always been a bit of a hassle to link to alternative archives in Movable Type.  The standard <mt:archivelink> tag only generates links to the archive that has been set as the 'preferred' one, so if you were publishing other versions of your archives (mobile, XML, ...) you had to manually generate links to them.  I even wrote an article on that a while ago, explaining how you could use the regex_replace attribute for this.
But now it seems there is a new plugin by Naoaki Onozaki, called 'OtherArchiveURL'.  It adds a new tag <mt:otherarchiveurl> to Movable Type that can be used in the same contexts as <mt:archiveurl>, but this one takes a number of possible attributes that allow you to choose which archive the url is generated for.

You can simply reference the archive you want by the name/label of the template that generates it, by the template id, by the template identifier or by the template mapping id.  Pretty neat, and should have been core functionality a long time ago in my opinion.

No TrackBacks

TrackBack URL: http://www.movabletips.com/cgi-bin/mt/mt-tb.cgi/111

Leave a comment


Movable Type Help?

"Can my Movable Type issue or project be taken care of by a professional?" Yes It Can Be! Contact YesItCan.be

Recent Comments

  • Laura: Do you see MT really picking itself up any time read more
  • hiranyaloka.myopenid.com: Here's another way to split a string with the RegexList read more
  • Michel Oudendijk: Found it! I inadvertently placed the commentchallenge tag within the read more
  • Michel Oudendijk: Hi Maarten, I too installed this on one of my read more
  • hiranyaloka.myopenid.com: Thanks for the tip, Maarten. For more on how to read more
  • Nelly: Where can I visit something that could teach me somehow read more
  • Mihai Bocsaru: Michael, you should know that Maarten's plugin could work for read more
  • Mainer: Have you heard anything else about this? There does not read more
  • Andrew Bowden: How on earth did you know that this was something read more
  • Jonh: An other web based news aggregator: http://www.latestnewsheadline.com read more
Powered by Movable Type 5.13-en