Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Big Trouble - if_section, if_category on the frontpage
Here is a part of my code in default form:
<a href="<txp:site_url /><txp:section />"><txp:section /></a> → <a href="<txp:site_url /><txp:section />/<txp:category1 />"><txp:category1 /></a>
…
This provide result that you can see at http://www.web-art.cz/test – it is a green line in middle column with icon of the section – Earth – and than is NAME of SECTION → NAME of CATEGORY1…
But as you can see, I use <txp:section />
as a part of code in a href… – so there are displayed in small caps cos it is the real name of this section.
BUT I NEED TO DISPLAY in between A HREF name of section with the first capital letter – so no software but Software !!
How can I do that? PLS :-( I try to use <txp:if_section section="software">Software</txp:if_section>
but this causes that the name will not be displayd on the front page because we are not in the right moment in this section software, so it will be displyed only when we are in the section software.
And the same problem is with the category. If I am not in the particular category, it will not displayed the right name with the first capital with <txp:if_category>
… I tried plugin like ob1_if_section and mdn_if_section but the result is same. It will not displayed the right name on the front page.
SO, ONCE AGAIN – I NEED TO DISPLAY MY NAME OF SECTION AND CATEGORY NO MATTER WHERE WE ARE ON SITE – ON FRONTPAGE, IN SPECIFIC SECTION OR CATEGORY…
I hope you understand, what I mean. Sorry for my english :-) If you are able to help, please make a post.
Last edited by beztak (2005-11-20 12:06:56)
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: Big Trouble - if_section, if_category on the frontpage
For both sections and categories there is a “name” and a “title”. The name is the one that gets converted into something URL-friendly, the title can contain special characters and capital letters.
For the sections, there’s and extra field for “title” under the sections tab.
For categories, click on a category and you get to a details page where you can enter the title.
Now, if you want to output the title instead of the name (name is default), do it like so:
<txp:category1 title="1" />
or <txp:section title="1" />
Last edited by andreas (2005-11-20 14:57:14)
Offline
Re: Big Trouble - if_section, if_category on the frontpage
Yes, that’s what I want. Thank you very much indeed. I knew that there is this setup, but I didn’t know which tag I should use. I didn’t found this TXP tag with title=1 option. I appreciate your help.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline