Help - Search - Members - Calendar
Full Version: need something like 'MTIndexURL'
Movable Type Community Forum > Additional Resources > Tips and Tricks
kadyellebee
Which indexes do you want URLs for?  If its the Main Index one, its
CODE
<$MTBlogURL$>

If you are using archive filenames, then you can use the path that you are using in the blog config for the archive filename like
CODE
<$MTArchiveDate format="%Y/%m/%d.php"$>
(that's mine for my daily archives)

So I'm still not clear if that was enough to help you, but that's a start smile.gif

Kristine
kadyellebee
So your idea was to have a link that linked to a certain index template automatically, depending on which page you were on?  There's not a tag that does that.  You could point to a specific index template  by using MTBlogUrl/filename.html or something like that, but that doesn't sound like what you are looking for.

I think category archives might be a better bet for you, depending on how you have these templates set up.  

Best of luck,
Kristine
Muffinboy
Situation:
I have MT generate various (category based) indexes _and_ I make good use of the template modules. (You can have a peek at fragment.nl/resources)

Problem:
I need the complete URL of each index and I need to generate that URL dynamically, because: a) I need to use it from the footer-module, b) the footer-module is incorporated in the various indexes generated, so c) I can't hard-code it into the footer-module.

In short, how do I get the full URL of an index from MT?

I'm probably missing something quite obvious here, so please enlighten me smile.gif  TIA
Muffinboy
Okay, I figured this one was going to be confusing. Let me try to explain:

I don't have a main index. I use MT in this instance as a simple cms which holds a lot of (mostly) bibliographic data, which is being output by category. In this setup I have no use for a chronological 'main index' page.

So I have several 'index pages' which display the output for the 'bibliography', the 'online articles', etc. categories.

These pages to my best knowledge are not archives, neither do I want to link to individual archived entries.

I want to be able to link to the 'bibliography' index, the 'online articles' index, etc.


Hmm... I'm thinking a possibility is not to use several indexes, but set up category-archives instead. Then I can use: MTArchiveLink category="category_name" to link to that index.

Is that the only option here, or again, am I missing something crucially obvious?

Frank.
Muffinboy
QUOTE
So your idea was to have a link that linked to a certain index template automatically, depending on which page you were on?


Exactly.

QUOTE
There's not a tag that does that.  You could point to a specific index template  by using MTBlogUrl/filename.html or something like that, but that doesn't sound like what you are looking for.


Right, because then I'd have to make that link static again, setting the 'filename.html' part by hand.

QUOTE
I think category archives might be a better bet for you, depending on how you have these templates set up.


I haven't set them up really, but I will. They're going to be 90 percent the same as the indexes I made the templates for, so not a big deal.

Thanks for the help Kristine smile.gif
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-2009 Invision Power Services, Inc.