Help - Search - Members - Calendar
Full Version: okay where am I going wrong here?
Movable Type Community Forum > Additional Resources > Tips and Tricks
SashaFantastica
Okay I'm having this problem in 2 different blogs and just can't figure it out.

For one I use category archiving, and for the other I use monthly archiving.

How do I set it so the MTEntryLink tag is a true permalink in itself - ie it goes to month.php#entryid or category.shtml#entryid?  Currently it's just going to the main page, not anchoring to the entry itself.

So I figure this is done in the blog config/archiving section.  But when I tried to put in
CODE
<$MTArchiveCategory dirify="1"$>.shtml#<$MTEntryID pad="1"$>

for the category based blog, I got an error when rebuilding.

any ideas?
hezair
You're getting the error because 'EntryID' cannot be used to make a Category Achive File type... and as far as I know, since those blog/config attributes are used to make files, then the #bookmark won't work there.

Would using Individual archives work for you? This might be too elementary for you, but just in case:

In Indiv Archive File template blog/config:
CODE
<$MTEntryCategory dirify="1"$>/<$MTEntryID pad="1"$>.html


Then in the Category Archive File template blog/config:
CODE
<$MTArchiveCategory dirify="1"$>/index.shtml


And on that Category Template, link to your entries.

But that won't solve your problem at all, will it?

Have you played around with the 'multiple templates' option? You can make an Individual Archive File Type based on the category template. First Create new archive template on the templates page, then in Archiving Config click on 'Add New...' and select your new template.
kadyellebee
I think that if you set your archive filename to be this:
CODE
<$MTArchiveCategory dirify="1"$>.shtml
, that will set up the format for the filename you want.

Then in your category archive template, make sure that you have an a name declaration somewhere inside the MTEntries container - here's how the default one has it:
CODE
<a name="<$MTEntryID pad="1"$>"></a>


Then to make sure your MTEntryLink from the Main Index template works the way you want it to, confirm that your code has a section pointing to that "a name" on your category archive like this:
CODE
<a href="<$MTEntryLink$>#<$MTEntryID pad="1"$>">Link to Entry</a>


That should do it.  And you can do similar steps for the blog that has Monthly as its default.  The MTEntryLink knows which archive is default.

Hope that helps,
Kristine
SashaFantastica
Kristine - i have that part worked out fine.  What I want is a way to just make the EntryLink tag go straight to the entry.  This because I'm trying to use that other multiple blog code and some other code that only links to the Entry using the MT tag, not a link I can specify.

Ooh and I can't use individual archives as this is for my bookmarks site - each entry is only about one line long and need to all be displayed on each category page together.

I actually don't think this is really possible, was just hoping for an easy way around it.

Anyway - thanks for your help!
kadyellebee
I was afraid that I still wasn't helping, but I hoped if I outlined the normal steps, maybe it would give you something!  Sorry, Kristen! :/

Because the Archive Filename is how the file is named as a whole, it wouldn't work to put the #EntryID in.  There isn't one Entry ID that could attach to the filename, so it gives you an error.

Kristine
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.