Hi everyone,
I want to know if it is possible to load a resource in elgg-ligthbox.
I try something like this in a lightbox but nothing happens.
echo elgg_view_resource('pessektress/all');
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.
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 1 like
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
- iionly@iionly
iionly - 0 likes
You must log in to post replies.Why would you want to load the entire page shell in a lightbox? Mostly (I think) you want to load a specific part of a page in a lightbox. That's what the views are for.
However if you want it should work like you tried. Did you confirm you get in the view? Cache flush is always what makes stuff work for me as I forget that I added a new view ;)
Thanks @jerome,
Yes I confirm that I dit it from a view. But nothing happen.
The lightbox try to load and remains in progress.
Regards,
Is the view registered as an AJAX view? What does the webbrowser console (or network tab) say the response in from the request to the url the lightbox is trying to load?
Yes the view is registered as an AJAX view. For instance when I replace elgg_view_resource by elgg_view_form the form is displayed in the lightbox.
The are the errors I got in my console when using elgg_view_resource
Regards,
I would say, it is not possible. As you still haven't told us why you even think this necessary I don't think it's worth for any of us spending any time on it anyway.