Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-30 14:11:03

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

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

#3 2005-10-31 07:47:01

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: Problem with multiple worded category names

Just the link text, browse to dnevnikeklektika.com and see the problem. ;)

Offline

#4 2005-10-31 15:22:53

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

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

#6 2005-10-31 18:27:15

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

Re: Problem with multiple worded category names

Kudos to jsoo ! :)
cool trick.

Offline

Board footer

Powered by FluxBB