I am seeing element ID for all of my form elements with a --2 or __2 appended to the end. Is this from the "areas" handling? Could you handle that with a data-property on those elements instead? i.e. data-formid=2?

If you aren't seeing this behavior, maybe it is because I am using panels to node_edit override?

Comments

taldy’s picture

Status: Active » Closed (won't fix)

Hello,

Actually I can't add 'data-formid=2' attribute because this delta calculates for each element independently especially to avoid HTML ID duplicates. It based on already existing element IDs on the page. To avoid this problem I propose you to use classes instead of IDs, because duplicate classes isn't a problem, and so element classes will never be changed automatically, without your wish.

But to make makeup simpler I added area name based class for the area wrapper (for example: asaf-area3-area-wrapper) and data-attribute data-asaf-area-name with the name of area to the area element.

Currently this changes placed in 7.x-1.x-dev