Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-07 08:38:31

Souljacker
Member
From: Terra Brasilis
Registered: 2005-06-20
Posts: 47
Website

Displaying categories name correctly

Greetings,

When I set a Category name with spaces, for example, – are added in it’s link to fill the spaces.

For example: if I create a category named: “Tips and Hacks” it’s link will be “Tips-and-Hacks”.

So far so good.

The problem is the “link string” is being displayed when I want the category name to be.

When I use <txp:category_list wraptag=“ul” break=“li” /> it displays ok: Tips and Hacks

But when I use <txp:category1 link=“y” /> it’s name is displayed as Tips-and-Hacks.

What am I missing?

Offline

#2 2005-12-07 09:28:37

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Displaying categories name correctly

You need to specify the title attribute for use “on-screen” like this <code><txp:category1 title=“1” /></code>. If you click on a category name in TXP’s admin it should take you to another screen where you can set how you want the “title” to look.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#3 2005-12-07 10:11:41

maharis
New Member
From: KL Malaysia
Registered: 2005-08-02
Posts: 9
Website

Re: Displaying categories name correctly

Ah I see, wanted to ask the same question, thanks guys for asking and answering! :)

Offline

#4 2005-12-07 11:05:16

Souljacker
Member
From: Terra Brasilis
Registered: 2005-06-20
Posts: 47
Website

Re: Displaying categories name correctly

thebombsite that’s perfect. Thanks.

Offline

Board footer

Powered by FluxBB