Hi everyone,
I used to load an ajax view in lightbox this way.
elgg_view('output/url', [
'text' => 'Open iframe lightbox',
'href' => elgg_http_add_url_query_elements('ajax/view/my_plugin/add', [
'guid' => $guid,
]),
'class' => 'elgg-lightbox',
'data-colorbox-opts' => json_encode([
'width' => '80%',
'height' => '80%',
]),
]);
How can I load the same view in iframe using elgg-lightbox-iframe ?
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.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 1 like
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
You must log in to post replies.Thanks @Nikolai Shcherbin,
But I want to load an ajax view using elgg-lightbox-iframe, not a url.
Regards,
What do you mean when you talk about elgg-lightbox-iframe?
Have you learned the docs: 1, 2 ?
Also, look at Theme sanbox -> JavaScript tool in Elgg developers tools plugin to view how lightbox works.