Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
Re: Displaying categories name correctly
Ah I see, wanted to ask the same question, thanks guys for asking and answering! :)
Offline
Re: Displaying categories name correctly
thebombsite that’s perfect. Thanks.
Offline
Pages: 1