I managed to achieve this by passing
Then I copied elgg/views/default/page/components/table.php to mod/myplugin/views/default/page/components/my-custom-list-type and added my conditions in that file.
In this case, your initial code should work as is.
Try use:
'item_class' => "elgg-item $class_name_based_on_metadata",
Looks like the base url doesn't include the subdirectory of your Elgg installation. It should ;)
I'll make an issue so I can look into this
Issue https://github.com/ColdTrick/newsletter/issues/59
If we fix this, it'll only every be for the newest release of Newsletter (for Elgg 4.3+)
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.