Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Difference in Category Page Url Structure and Clean Category Urls?
How do I output articles according to category with this url structure:
http://mysite/category/news/
Currently I can do this:
http://mysite/blog/?c=news
My permalink is set to:
/section/title
Art Rogue – Fine Art Photography
Offline
#2 2008-11-06 22:58:07
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Difference in Category Page Url Structure and Clean Category Urls?
You’ll get /category/news URLs when the category list is displayed on the front page (default page). You are probably using section="blog"
or this_section="1"
in your tag(s) that create the category links.
Offline
Re: Difference in Category Page Url Structure and Clean Category Urls?
Here is what code I am using in the section blog: http://mysite.com/blog/
<txp:category1 link=“1” title=“1” />
<txp:if_article_category number=“2”>
, <txp:category2 link=“1” title=“1” />
</txp:if_article_category>
Art Rogue – Fine Art Photography
Offline
#4 2008-11-07 00:20:16
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Difference in Category Page Url Structure and Clean Category Urls?
That’s strange, when I use exactly that code in articles displayed on a section page, the category links are like /category/category-name/.
Offline