Help - Search - Members - Calendar
Full Version: Lowercase for Category Archives.
Movable Type Community Forum > Using Movable Type > Entries and Archives
unfoldedorigami
I have upgraded to 3.11 and I would like to implement dynamic category archives. I am using the following code in the category archiving configuration, but the directories are not being lowercased:

CODE
<$MTCategory dirify="1" lower_case="1"$>/


EXAMPLE

This does not work -
http://depository.unfoldedorigami.com/cupb...pboard/journal/

This does work -
http://depository.unfoldedorigami.com/cupb...pboard/Journal/

The interesting part of this is that my individual entry archives work just fine with the lowercasing.

Here is the code :

CODE
<$MTEntryCategory lower_case="1" dirify="1"$>/<$MTEntryTitle dirify="1" lower_case="1"$>/


This works -
http://depository.unfoldedorigami.com/cupb...rary_skylights/

Am I doing something wrong? Is there some bug that prevents MTCategory information from being lowercased in category archives? Any help would be greatly appreciated. Thanks.
maddy
Hrm. I'm not sure why you're needing to use both of dirify and lower_case? When you use dirify alone, that should be enough to make all letters lowercased anyway... huh.gif Have you tried it using just that attribute? huh.gif

p.s. I assume you're actually using something like MTArchiveCategory, and not just MTCategory in your ArchiveFileTemplate?
unfoldedorigami
Yes. I tried it without the lower_case attribute and only dirify but still no go. Right now, the category template is the default that comes with movabletype and that shows just fine if the category is capitalized in the directory name. I'd rather not rename the categories so they're all lowercase if I can avoid it.
unfoldedorigami
Removed lower_case attribute from individual archive and category archive configurations and changed the name from MTCategory to MTArchiveCategory and that seemed to fix it.

Hmm ... Why won't the MTCategory tag dirify?
maddy
QUOTE (unfoldedorigami @ Sep 16 2004, 04:07 PM)
Hmm ... Why won't the MTCategory tag dirify?

I'm not sure there is any MTCategory tag - that's what I was alluding to earlier. There is MTCategories (a container tag), and a number of MTCategory* tags, but as far as I can recall, no MTCategory tag. Unless it's a new one I've missed. I have no idea what's going on with that! smile.gif
BoredInsomniac
David Raynes has written a plugin with an MTCategory tag, but it's only used to set up a context for other tags within it. It'd be useless here.
It was a quickie project, though, and so it might allow inappropriate usage like this and still return some value, rather than give an error.

As for fixing the problem, the file template should most likely be
CODE
<$MTArchiveCategory dirify="1" $>/
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-2008 Invision Power Services, Inc.