Help - Search - Members - Calendar
Full Version: Links To Alternate Individual Archives...
Movable Type Community Forum > Using Movable Type > Templates and Tags
Milohoss
Yo...

Let's say I have two different sets of individual archives. On is "normal" the other is meant for printers.

If I want to link to the first one, I obviously just type "<$MTEntryPermalink$>"

But how can I refer to the other one?
kevin67
First you have to map the template, you can do this by going to Settings > Publishing > Archive Mapping

From here you should see your Individual Entry Archive template, most likely it's publishing to the following path: (%y/%m/%f) or yyyy/mm/entry_basename.php

now you have to select "Create New Archive Mapping" and add your printer friendly template to the individual template section. Once it's added you'll need to select a different "Archive File Path" than the default template, for example: (%y/%m/%b/%i) or yyyy/mm/entry_basename/index.php

- might have to save / rebuild after this to see the changes

Then for your link to your printer friendly archives, instead of using "<$MTEntryPermalink$>" you will need to use the following: <a href="<MTBlogArchiveURL><MTEntryDate format="%Y">/<MTEntryDate format="%m">/<MTEntryBasename>/index.php">

I haven't tested this but it should work for you. Let me know if you have any problems
lisa
There's an article on Learning Movable Type about this:
http://www.learningmovabletype.com/archive...endly_pages.php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.