Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Problem with multiple worded category names
Hello people,
I have a problem with linking to categories who’s names consist of more than one word (they include spaces), ergo TXP spits ‘em out in-this-format. The links work fine, but i don’t want the words to be separated by minuses, but spaces (as it is noted in the organise submenu where you can specify the cat name and it’s title).
I am using the regular txp: category1 link=y and txp: category2 link=y to call this in the default article form.
Can someone tell me how can I make TXP to display the title, and not the name of the category?
PS
I am using this/kind/of/urls, but my site is not live yet. :(
Last edited by Dragan (2005-10-30 14:12:02)
Offline
#2 2005-10-30 22:16:03
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Problem with multiple worded category names
The links work fine, but i don’t want the words to be separated by minuses, but spaces (as it is noted in the organise submenu where you can specify the cat name and it’s title).
Do you mean that you want the URL to include spaces, or the link text? The text should include whatever’s set in the Title field, spaces and all – if it doesn’t, there’s something wrong.
URLs can’t contain spaces. Some old IE-centric web sites use them, but they’re invalid and don’t always work.
Alex
Offline
Re: Problem with multiple worded category names
Just the link text, browse to dnevnikeklektika.com and see the problem. ;)
Offline
Re: Problem with multiple worded category names
> Dragan wrote:
> Can someone tell me how can I make TXP to display the title, and not the name of the category?
<txp:category1 title="1" />
Code is topiary
Offline
#5 2005-10-31 15:49:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Problem with multiple worded category names
How are you outputting your category list on your site, by hand? If so, click on your category in the admin, then simply update the title. Otherwise, can you provide further info?
Edit: Ah, methinks jsoo has your answer (forgot about that…).
Offline
Re: Problem with multiple worded category names
Kudos to jsoo ! :)
cool trick.
Offline