Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-10-16 19:08:25

minimal design
Member
Registered: 2006-10-15
Posts: 38

category_list + this_section="1" + clean URI = possible? [txp 4.0.4]

Right now, I have a list of categories that I want to link to articles within the current section only. I got it to work with this code in a page template:

<code>
<txp:category_list class=”“ break=“li” wraptag=“ul” this_section=“1” categories=“cat_01, cat_02,cat_03”/>
</code>

My only “problem is that the links in this category list look something like:

<code>/section/?c=cat_01</code>

anyway to get it to work with clean URI so that it links to:

<code>/section/cat_01</code>

Thanks for any help with that! :)

Offline

#2 2006-10-17 00:09:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: category_list + this_section="1" + clean URI = possible? [txp 4.0.4]

Not with the built-in tag, as Textpattern does not support urls of the form /section/category, out of the box. There is a plugin that will support those urls, but you’ll need a second one that output them for you or you’d need to make the list by hand. Check the resources site, I’m pretty sure you’ll find what you need.

Offline

Board footer

Powered by FluxBB