Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-05 17:15:01

tohullandback
New Member
Registered: 2005-11-05
Posts: 2

<txp:c /> Lowercase

Hello,
I’m using the <code><txp:c /></code> tag but it outputs in lowercase only? I have checked the category names in admin and I have entered them there with an initial capital letter. How do I get my initial capital letter back?

Thanks

Offline

#2 2005-11-05 19:03:25

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: <txp:c /> Lowercase

Hi tohullandback.

If you are using 4.0.2, you can use <txp:category />, that is more appropiate.
<txp:category /> supports the title attribute (values: 0 / 1).

So, in the admin-side, when you create a category, you give a name to the category, and also you can give a title to the category.

The name is for “internal” use. I mean, you will use the category name inside other TXP tags. I would recommend you to use only lowercase letter and common characters for the category name.
Then, the title is for giving a more-human-readable title to the category. Here, you can use uppercase, special characters, etc. <del>Even</del>, you <del>can</del> cannot use HTML elements in your category titles! <del>:D</del> :(
(it was possible in 4.0.1, not in 4.0.2. Note to developers: please, dont hate me for talking about this)

So, you should use <txp:category title="1" /> if you want to output the category title.

The following also applies to <txp:section /> tag.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2005-11-06 12:07:57

tohullandback
New Member
Registered: 2005-11-05
Posts: 2

Re: <txp:c /> Lowercase

Great! thanks for that maniqui! :)

Offline

Board footer

Powered by FluxBB