Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
The 'form' attribute of TXP tag: category_list. Can it remove links?
Hi TXPers,
Is there an easy-peasy way to use the ‘form’ attribute of the TXP tag category_list so the list will render the usual list of linked category names, but, the one that is being shown is rendered as text (wrapped in an li or whatever) but not wrapped in a link?
Can’t find the answer here or on the Internets.
I’m certain it’s my inability to look efficiently so pre-apologies if the answer was staring me in the face somewhere painfully obvious.
Cheers!
-Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: The 'form' attribute of TXP tag: category_list. Can it remove links?
Here is example without using form – instead of this <txp:category_list>
is used as container. If you like forms – you can move code inside this tag to the form and specify form attribute.
<txp:category_list>
<txp:if_category name='<txp:category />'>
<txp:category title="1" link="0" />
<txp:else />
<txp:category title="1" link="1" />
</txp:if_category>
</txp:category_list>
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
Re: The 'form' attribute of TXP tag: category_list. Can it remove links?
I’m sure that there is a way but I’m yet to think of one.
As a general rule though, it might not be a good idea as the current category link will also take you back to the front page of the category if you have pagination.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: The 'form' attribute of TXP tag: category_list. Can it remove links?
the_ghost and
colak, thanks to both of you for these two pieces of help. Brilliant, as ever.
Cheers and happy what’s-left-of-it weekend to you both :)
-Alan
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline
Re: The 'form' attribute of TXP tag: category_list. Can it remove links?
just noticed that Victor came up with a solution:)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: The 'form' attribute of TXP tag: category_list. Can it remove links?
@colak Yes, but I hadn’t thought of the point you made about pagination, so thanks to you also >^_^<
At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A
Offline