Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-11-06 01:44:47
- Insignia
- Member
- Registered: 2006-05-05
- Posts: 13
Messing with categories
When I use the category_list tag, I get URLs in the site/category/categoryname format.
With a category popup, the URLs are in the site/?c=categoryname format.
I want a list of categories written out on the page, like with category_list, but using the same kind of URLs as the popup – and I can’t find any option or feature to change this.
Please help. I’m willing to hack and slash if needed, I just don’t know how.
Offline
Re: Messing with categories
Do you want to try this? Create a new form with the following code:-
<txp:if_different>
<li><a href="<txp:site_url /><txp:section />/?c=<txp:category1 />"><txp:category1 title=1 /></a></li>
</txp:if_different>
(I’m not sure if the “/” before the “?” is required or not. If you try it and end up with “//” then it isn’t.)
Now in your page template use the <txp:article_custom />
tag wrapped in <ul>
tags and calling your new form. You will need to specify a limit as the default is, I believe, 12.
Last edited by thebombsite (2007-11-06 11:59:22)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2007-11-06 12:15:24
- Insignia
- Member
- Registered: 2006-05-05
- Posts: 13
Re: Messing with categories
It seems to work. Thank you very much!
Offline
Pages: 1