Export CMS collections and fields using html tag attributes

It would be great to be able to add automatically attributes to the html tags that are connected to fields from a collection. When clicking on the check box (in purple) of a collection field to attach it to the html tag, it will automatically add an attribute corresponding to the field like this :

tag attribute: 'data-<field type>'='<field slug name>'

That way you can specify multiple fields to a single html tag.

Same idea with collections, if an attribute could be automatically added to the top div tag of a collection dynamic list (with the class='w-dyn-list') like this :

tag attribute: 'data-collection'='<collection slug name>'

And we could extend the concept with filters, that would be awesome !

  • Axialmedia Inc
  • Aug 31 2020