Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
etc_attribute: enable HTML attributes in txp tags
This plugin will (try to) append registered HTML attributes to the output of <txp:tags />
. For example, <txp:link />
does not accept style
attribute, so passing it, say, style="color:green"
would issue a warning. With etc_attribute
enabled, style
is registered for all tags, so
<txp:link id="1" style="color:green" />
appends style="color:green"
attribute to <a />
tag generated by <txp:link />
, and we get
<a href=“http://textpattern.com/” style=“color:green”>Textpattern</a>
You can register additional attributes via plugins preferences. Enjoy!
Offline
Re: etc_attribute: enable HTML attributes in txp tags
This looks wonderfully useful for a couple of cases I can think of!
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: etc_attribute: enable HTML attributes in txp tags
Nice! This has been a bugbear of mine for years, having to add additional superfluous HTML tags just so I can get a desired attribute onto some HTML (such as ARIA and data-x
attributes).
Offline
Re: etc_attribute: enable HTML attributes in txp tags
This simplicity is 4.7 global attributes in action, it was not possible before.
Offline