Help - Search - Members - Calendar
Full Version: Subfolders in archives folder
Movable Type Community Forum > Additional Resources > Tips and Tricks
Pezzetto
Hello,

I noticed that a lot og MT sites have their entries distributed in subfolders inside the archives folder.

For example: /archives/2004/03/ or /archives/personal/index.html

How can this be done? It's a MT tag or a plugin?

Thanks in advance smile.gif
gvtexas
You specify this sort of thing in your weblog config screen, archiving tab, and enter what you want for each archive type in the field under the column "Archive File Template."

For instance, for the individual archive, you could have this code in that field:
CODE
<MTEntryCategory dirify="1">/<MTEntryTitle dirify="1">.html

What that would produce is a path that includes your category names as subfolders:
.../category/entrytitle.html

the dirify attribute is there to expunge html code and spaces from your category and entry names, so that if you have an entry called "The Real Story About Fuzz" filed in category "Wonderous Nothings" would look like...
.../wonderous_nothings/the_real_story_about_fuzz.html

Hope this helps! smile.gif
Pezzetto
Thank you very much!! smile.gif

Now I'll write a hundred times:
"I must read the manual. I must read the manual I must read the manual..." wink.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.