Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
file_download_link: class not recognised (corrected title)
Hi
I thinked that class is a global attribute, but it’s not working on file_download_link
txp 4.8.8
Cheers.
Last edited by Dragondz (2024-09-12 15:39:22)
Offline
Offline
Re: file_download_link: class not recognised (corrected title)
style
is available as an attribute on many tags, isn’t it?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: file_download_link: class not recognised (corrected title)
Here is a list of current (4.9-dev) globals:
labeltag, class, html_id, not, breakclass, breakform, wrapform, evaluate, escape, wraptag, break, breakby, label, trim, replace, default, limit, offset, sort, variable
Offline
Offline
Re: file_download_link: class not recognised (corrected title)
etc wrote #337835:
It could be coupled with
wraptag
, indeed, but do we promote inline styles?
It’s not something we advocate but I think the attribute is still there for legacy reasons.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: file_download_link: class not recognised (corrected title)
Sorry i am talking about class !!
Offline
Re: file_download_link: class not recognised (corrected title)
Yes, class
is global, but only works with wraptag
(global too). Seemingly, <txp:file_download_link />
has no own class
attribute. We can add it if needed, but then it will supersede the global one. You should also be able to construct links manually here:
<a href="<txp:file_download_link />" class="myclass">link content</a>
Offline