Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-03-29 16:27:32

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

display only category url

Hello,

I want to add an html attribute data-* to a category link :

<a href="category-url" data-id="category-name">category-title</a>

txp:category don’t have a url attribute, contrary to txp:section.
Any idea?

Offline

#2 2012-03-29 16:38:36

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: display only category url

sacripant wrote:

txp:category don’t have a url attribute, contrary to txp:section.

Actually, it does have. Wiki just seems to be outdated/incorrect.

<txp:category url="1" />

Offline

#3 2012-03-29 16:48:15

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: display only category url

And now wiki should reflect correct information. Added that bastard called url.

Offline

#4 2012-03-29 16:55:23

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

Re: display only category url

it does have since 4.07 ?

☹⚰☠☹⚰☠☹⚰☠☹⚰☠☹⚰☠

Thanks Jukka

Offline

Board footer

Powered by FluxBB