Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-17 20:29:26

rayne
Member
From: AL USA
Registered: 2004-03-24
Posts: 58
Website

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

#2 2007-05-17 21:16:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#3 2007-05-17 21:17:18

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,391
Website GitHub Mastodon

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

#4 2007-05-18 13:45:19

rayne
Member
From: AL USA
Registered: 2004-03-24
Posts: 58
Website

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

#5 2007-05-18 13:58:18

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#6 2007-05-18 14:05:11

rayne
Member
From: AL USA
Registered: 2004-03-24
Posts: 58
Website

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

#7 2007-05-18 14:08:24

rayne
Member
From: AL USA
Registered: 2004-03-24
Posts: 58
Website

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

Board footer

Powered by FluxBB