Hi everyone,
How can I make entity icon to be open in elgg-lightbox when use click on it ?
I try to do it by doing as followed but none of the following code is working.
elgg_view_entity_icon($entity, 'medium', ['link_class' => 'elgg-lightbox'])
elgg_view_entity_icon($entity, 'medium', ['img_class' => 'elgg-lightbox'])
elgg_view_entity_icon($entity, 'medium', ['class' => 'elgg-lightbox'])
Regards,
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.
- VinceK@vincek

VinceK - 1 like
- Nikolai Shcherbin@rivervanrain

Nikolai Shcherbin - 0 likes
- Hermand Pessek@rheman

Hermand Pessek - 0 likes
You must log in to post replies.Hello Hermand,
You could have a look at the following for working examples:
a) Elgg reference at http://reference.elgg.org/index.html
Search for elgg_view_entity_icon and look at the given example.
b) Plugins that use the functionality you require, such as Tidypics which uses lightbox in river items (tidypics/views/default/river/object/image/create.php)
Kind Regards.
It will have no effect. You should extend the 'icon/default' view.
Check out this plugin.
thanks a lot