Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 Today 06:15:49

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,300
Website GitHub

Re: etc_attribute and data-… attributes?

giz wrote #343211:

Try something like this in your head:

<style>...

Good idea! Thanks for the tip.


TXP Builders – finely-crafted code, design and txp

Offline

#17 Today 06:29:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,554
Website GitHub

Re: etc_attribute and data-… attributes?

etc wrote #343207:

Ideally, com_connect should use the core lAtts() function, to be consistent with future changes. I will try to take a look at it when time allows.

It would be amazing if it could. From memory the only reason it doesn’t is because it permits extra ‘global’ attributes that are handled across tags (although a few are excluded in certain tag situations because they don’t apply to things like file inputs).

It might be better to do something similar to the image tag and pass through any attributes that aren’t explicitly handled, if that’s possible, and just “forbid” (remove) a few that don’t make sense on a tag by tag basis.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB