Help - Search - Members - Calendar
Full Version: MTCategoryLabel in individual archive
Movable Type Community Forum > Additional Resources > Tips and Tricks
bastish2
I want to put the category title in my individual archive path, so for example, a post called "My Favorite Book" in the main category "Books" would have the url "/books/2003/04/my_favorite_book.html"

In my archiving configuration settings I am trying


CODE
<$MTCategoryLabel dirify="1"$>/<$MTArchiveDate format="%Y"$>/<$MTArchiveDate format="%m"$>/<$MTEntryTitle dirify="1"$>.html


But when I rebuild, I keep getting an error saying

QUOTE
Renaming tempfile '/var/www/blabla/html/.new' failed: Renaming '/var/www/blabla/html/.new' to '/var/www/blabla/html/' failed: Not a directory


How do I make this work?
girlie
Use MTEntryCategory instead.

You may need to change MTArchiveDate to MTEntryDate as well (not sure really, because the documentation says to use only MTEntry* tags in an Archive File Template for an Individual Entry Archive).
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.