For V2 elements, there are automatically generated classes added to each element, such as e710-22 for an element on page id 710, the 22nd element rendered.
In the element rendering files, this seems to be referred to as $mod_id, and is stored sometimes in the post_content as an attribute to the shortcode as “_id”.
Is there a way to use this generated ID in custom (classic) elements?
The numbering system currently does seem to count classic elements as well as V2 elements, but I couldn’t see a way of referencing it from my custom element shortcode.php template, as simply referencing $mod_id doesn’t work, and neither does trying to access $_custom_data, which is referenced by V2 element view templates.
Alternatively, do you have any update on implementing a V2 Element API to allow custom V2 elements? It would be great to have this available in order to make use of some of the great V2 features, but with the customisation of self-developed elements.