Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2015-02-19 07:40:55
- angryrectangle
- New Member
- Registered: 2014-11-02
- Posts: 3
How do I turn off Category links?
Hello!
Forgive me if this is a stupid question, but I’ve been searching and searching and unable to find a solution to this (seemingly) simple problem.
I would like to have my Categories and articles, displayed as such:
Category1: Category2:Meaning that, I want the articles themselves to appear as links but NOT the categories. I want the categories to appear as titles NOT as links.
I feel like this should be something so simple, but I can’t seem to figure it out. Any help?
Offline
Re: How do I turn off Category links?
Hi
Can you post the code you are using to see how to correct it?
Offline
Re: How do I turn off Category links?
Here’s a variation of this txp tip which should work
<txp:category_list wraptag="ul" break="">
<li<txp:if_category name='<txp:category />'> class="active_cat"</txp:if_category>><txp:category title="1" link="0" />
<txp:variable name="active_article_class" value="" />
<txp:if_article_id>
<txp:variable name="active_article_class" value=" active_article" />
</txp:if_article_id>
<txp:permlink class='article_class<txp:variable name="active_article_class"/>'><txp:title/></txp:permlink><txp:category /></txp:output_form>
</li>
</txp:category_list>
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#4 2015-02-20 00:19:26
- angryrectangle
- New Member
- Registered: 2014-11-02
- Posts: 3
Re: How do I turn off Category links?
colak wrote #288417:
Here’s a variation of this txp tip which should work
<txp:category_list wraptag="ul" break="">...
Awesome! Thank you so much! :)
It seems to be working exactly as I had hoped!
Now just to tweak it a little…
Thanks again :)
Offline
Re: How do I turn off Category links?
colak wrote #288417:
Here’s a variation of this txp tip which should work
<txp:category_list wraptag="ul" break="">...
I look at that code and it reads like poetry! Never in a million years could i have been able to construct that to :
List Catergory Names as Plain Text and the Articles Titles within those Categories as Links.
Filed away for future use.
Thanks!
…. texted postive
Offline
Pages: 1