Hey,
I'd like to add a html5 data-attribute to the elements of certain lists (gallery type).
Does anyone have an idea how to do this without overriding the list view?
It's a default elgg_list_entities_from_metadata query.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Dries@driesdk
Dries - 0 likes
You must log in to post replies.The easier would perhaps be using `item_view` parameter in list options, wrap your item with a div that has data-attribute, then just use $.parent().
Thanks, I was going to try the item_view parameter, but I didn't thought I could use a custom list like that. Thanks!