Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
category_list URL
howdy
I’m looking for a way to clean up my url while using the category_list for navigation. I rewrite the url from www.visiongrahpix.de/section/?c=category to www.visiongrahpix.de/section/category and it works fine.
Only my subnavigation uses the category_list tag which outputs www.visiongrahpix.de/section/?c=category again.
Is there a way to make the category_list output the url this way: www.visiongrahpix.de/section/category ???
I have tried the this_section attribute but this outputs it entirely different.
thanks in advance
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
Re: category_list URL
My category list tag is outputting clean URLs. I am using the this_section="1"
attribute though. Not sure if that makes a difference. Also I use SVN and I can’t remember if anything has been changed for this tag. I take it you have set clean URLs in Preferences?
Last edited by thebombsite (2008-01-11 23:13:25)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: category_list URL
in preferences I set the url scheme to /id/title. and I am also using this_section=“1” within the category_list.
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
Re: category_list URL
I’m just using /section/title/ though I don’t think that should affect it.
Last edited by thebombsite (2008-01-11 23:33:43)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: category_list URL
that outputs the same. still with www.visiongrahpix.de/section/?c=category
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
Re: category_list URL
I was just checking to see if there had been any changes to the tag in SVN but I can’t see anything. I’m afraid I’m at a loss with this one. :(
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Re: category_list URL
thanks anyway
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
#8 2008-01-12 00:03:37
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category_list URL
gbp_permanent_links will do that.
Offline
Re: category_list URL
awesome :-) I don’t even have to write the .htaccess myself
Last edited by markusfalk (2008-01-12 00:21:24)
I sometimes destructively reverse engineer my own work and the only help is this forum.
visit me at visiongraphix
Offline
Re: category_list URL
Just one more thing. I had the same problem and with gbp_permanent_links now the urls are ok.
I am using my blog page to display list of articles within the categories.
When the visitor clicks on some category he gets the list of all articles within that category, which is fine. But how should I ad meta informations to that page? The page displays correctly with articles and everythin, but no meta title, description and keywords.
I can maybe make another section spacial for categories and using the static article add meta info. But I have lots of categories, and then on every category landing page it would be the same meta info. How to make it different for every category?
Offline
#11 2008-01-14 16:38:47
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: category_list URL
You could create a form for every category with the meta tags, and name them ‘meta-name-of-category1’, ‘meta-name-of-category2’ etcetera. Then use asy_wondertag on your page like this:
<txp:if_category>
<txp:asy_wondertag>
<txp:output_form form="meta-<txp:category />" />
</txp:asy_wondertag>
</txp:if_category>
Last edited by els (2008-01-14 16:39:37)
Offline
Re: category_list URL
Thanks a lot! It works.
Offline
Pages: 1