Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
if_section not working when not in Messy permlink mode
I have switched a new site from Permanent Link Mode “?=messy” to “section/title” but now a previously working <txp:if_section name=“Services”> tag in a form is no longer evaluating to true and I get the else output
when I switch it back to messy it works as designed…..
Any ideas?
See it here:
messy: http://www.nucretedesigns.com/index.php?s=Services
clean: http://www.nucretedesigns.com/Services/
notice the – “learn more” in the article titles is no longer there.
Thanks
Last edited by cuda (2008-02-20 21:10:01)
Offline
#2 2008-02-20 22:29:46
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: if_section not working when not in Messy permlink mode
Try if changing your section names to all lowercase (as well in the section settings as in your tags) helps.
Offline
Re: if_section not working when not in Messy permlink mode
Perfect….is this reported as a bug?
Offline
Re: if_section not working when not in Messy permlink mode
It’s a known problem that using non-lowercase section/category names can cause these problems. Note that you can still use uppercase in the section/category titles, just not in the names. Personally I think the names should be forced to lowercase. Doesn’t look good, having uppercase in URLs (and makes it harder to remember for visitors).
Offline
#5 2008-02-21 19:22:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: if_section not working when not in Messy permlink mode
ruud wrote:
Personally I think the names should be forced to lowercase.
I’ve asked for that ages ago :) People could then, when creating a new section or category, enter the title, and the name would automatically be correct. As it is now, when you create a new sec/cat by entering either the name or the title, you always have to change one of them or both afterwards. And most users don’t remember, or know, that this has to be done.
Last edited by els (2008-02-21 19:23:50)
Offline
Re: if_section not working when not in Messy permlink mode
I think you are right, but all probably don’t. Really though txp should just convert the string to lowercase for evaluation anyway just like if you use the url:
myTxPsitE.com will work just as well as mytxpsite.com
eliminate the confusion and give the people the option
Offline