How can I load an ajax view in iframe using elgg-lightbox-iframe

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 ?



Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking