Help - Search - Members - Calendar
Full Version: how to make individual archiving by date
Movable Type Community Forum > Additional Resources > Tips and Tricks
vidan
hello!
i've seen many blogs, some were using archiving like this

for example--> www.someblog.com/archive/2004/03/title_of_the_entries.php

i want to make that, if i make new entry (and current date is 29 03 - 2004, when it goes to rebuild, it will display on archive/2004/03/title_of_the_entry.php)

how to do that?
anyone know wink.gif
LisaJill
CODE
<$MTArchiveDate format="%Y/%m"$>/<$MTEntryTitle dirify"1"$>.php


put that in weblog config -> archiving -> individual template file name.

does that help?
vidan
An error occurred:


Building entry 'ssss' failed: Build error in template 'Date-Based Archive': Error in tag: The archive type specified in MTArchiveList ('Daily') is not one of the chosen archive types in your blog configuration.

found this error when rebuild
LisaJill
Thats something in your template calling daily archives, shouldn't have anything to do with the code I gave you.

You can either enable daily archive (weblog config, archiving, check daily archives) or remove the call to daily archives from your template.

does that help?
vidan
Execution of (/..../www/archives/2004/03/And the answer is...php) is not permitted for the following reason:


Script path contains illegal components



Hello! found this error lol!

space is not permitted ya?
can i use space?
is this something i need to change with encode ?
LisaJill
what code are you using and where? It should produce no spaces.... thats what the dirify="1" is for.
vidan
anyway
thank you for your fast-reply

thanks !
vidan
<$MTArchiveDate format="%Y/%m"$>/<$MTEntryTitle dirify"1"$>.php

you forgot put =
lol

but, its fixed tq smile.gif
LisaJill
Bleh I'm sorry. I had dirifyplus="sld" because I prefer hyphens for seo, and when I changed it to not use the plugin, well - as you saw, I messed it up =)

Sorry about that!
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.