Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-13 16:35:22

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

#2 2009-09-13 17:56:32

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#3 2009-09-13 18:00:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#4 2009-09-13 19:03:21

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

#5 2009-09-14 06:08:36

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#6 2009-09-14 11:05:48

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

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

Board footer

Powered by FluxBB