Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2014-11-02 15:17:02
- ingleslenobel
- Member
- Registered: 2014-10-16
- Posts: 88
Lose the word "category" in Category Title?
Hello,
How would I lose the word that’s added into category titles “Category”? it looks like it’s part of title <h3 itemprop="name"><a href="<txp:permlink />/" itemprop="url"><txp:title /></a></h3>
but changing title to something else hasn’t worked for me. Is there a way to for example not have this page showing “category blah blah” but instead “blah blah articles”
Thank you
-Johan
Offline
Re: Lose the word "category" in Category Title?
I think the code you posted pertains to the article title, i.e. the “viverra dolor mattis”, and “Vivamus Non Neque Id” items on that page.
Somewhere in your page template there will be a <txp:category title="1" />
tag beneath the code <!-- else is this an article category list? -->
. This tag shows the category title, i.e. “Macro Software”. My guess is that the word “Category” has been written in front of it! If not, check you haven’t inadvertently written the word Category in the title field of the “Macro Software” category on the content > category pane…
TXP Builders – finely-crafted code, design and txp
Offline
Re: Lose the word "category" in Category Title?
ingleslenobel wrote #285378:
Is there a way to for example not have this page showing “category blah blah” but instead “blah blah articles”
There is no category-blah/article-title
permlink mode in txp, simply because some articles have no category. On the other hand, there is section/article-title
. Dropping category
in url, how could you tell the macro-software
category from a macro-software
section or article?
Offline
#4 2014-11-02 16:48:01
- ingleslenobel
- Member
- Registered: 2014-10-16
- Posts: 88
Re: Lose the word "category" in Category Title?
No, it’s a boilerplate of some sort – see here . I can’t seem to get at it though. How do you see and edit all the boilerplate text?
Also, I don’t mind it showing in the url if it has to, but just don’t want it at the top :)
Last edited by ingleslenobel (2014-11-02 16:52:50)
Offline
Re: Lose the word "category" in Category Title?
ingleslenobel wrote #285394:
No, it’s a boilerplate of some sort – see here . I can’t seem to get at it though. How do you see and edit all the boilerplate text?
Also, I don’t mind it showing in the url if it has to, but just don’t want it at the top :)
My bad! :) Seek for Category
or <txp:text item="category" />
after <txp:if_category>...
in your Presentation/Pages
tab.
Offline
#6 2014-11-02 17:22:21
- ingleslenobel
- Member
- Registered: 2014-10-16
- Posts: 88
Re: Lose the word "category" in Category Title?
Solved it – <txp:text item="category" />
in default. Remove that and add Articles behind it, done.
The html source had “also omits the pagination links” in it so a search using “Where used” extension bailed me out. What a life saver.
Last edited by ingleslenobel (2014-11-02 18:21:39)
Offline