etc_attribute

2019-02-07 13:15

Keywords: custom, html, attribute

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="background:#ffda44" would issue a warning. With etc_attribute enabled, style is registered for all tags, so

<txp:link id="1" style="background:#ffda44" />

appends style="background:#ffda44" attribute to <a href="http://textpattern.com/">Textpattern</a> tag generated by <txp:link />, and we get

Textpattern

You can register additional attributes via plugins preferences. Enjoy!

File(s)