Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Category link inconsistent
I’ve created a misc form that uses <txp:category_list /> to display a list of categories in my sidebar. The list is using messy urls even though I’ve got my prefs set to use clean urls. Is there any way to change this?
Rayne
mama love
Offline
Re: Category link inconsistent
Can you give a more detailed example, preferably a page that demonstrates this problem?
Be aware that http://example.com/section?c=category is a “clean” URL in TXP, because there’s no official URL TXP scheme that looks like http://example.com/section/category, although some plugins do use this.
Last edited by ruud (2007-05-17 21:17:04)
Offline
Re: Category link inconsistent
No, the category URLs are built this way when the category URL must point to both a section and a category.
Offline
Re: Category link inconsistent
I’m using a plugin (jnm_categories) in my article form that just returns category1 and 2 with a specified separator. It uses the code that the txp category tags use.
It returns “site/category/catname” format. This leads me to believe that the txp tag for category 1 and 2 also return “site/category/catname” format. But why does the category_list tag return “?c=”?
Rayne
mama love
Offline
Re: Category link inconsistent
rayne wrote:
This leads me to believe that the txp tag for category 1 and 2 also return “site/category/catname” format. But why does the category_list tag return “?c=”?
They don’t and neither does category_list. Perhaps the plugin you’re using supports this and it offers some tags to make use of it, but that doesn’t change how the built in TXP tags work.
Offline
Re: Category link inconsistent
hmm. not sure then. Maybe it’s because in my category_list tag I’m specifying the section and for the article category link I’m not. But I need the section on the category_list because it’s viewed from other section pages since it’s on the sidebar.
Oh well, I guess there’s no way to change it so that it will work the way it needs to. If I don’t specify the section, then the category_list will be incorrect when on the other section.
Update: Did a test and took out the section attribute for the category_list and the links now are in the right format and they seem to be working correctly, so I guess it’s fixed now. My other section doesn’t have posts on the frontpage, so maybe that’s why they are working properly.
Last edited by rayne (2007-05-18 14:07:46)
Rayne
mama love
Offline
Re: Category link inconsistent
Oh yeah…thanks for the help! :) I wouldn’t have realized the issue was with the section attr.
Rayne
mama love
Offline
Pages: 1