Page selector blank list

Permalink
Hi i'm not sure, i've used the pages selector in a custom dashboard module, I call it using the:

$ps = Loader::helper('form/page_selector');


Then

<?php echo $ps->selectPage('page-id', 'page_id', t('Select Page'), $testimonial_page)?></div>


And its random, sometime I get the pop up page selector and sometime I only get a blank page with a list showing top right:

Full Sitemap
Flat View
Search

Any idea as to what i'm doing wrong? Thanks in advance

BHWW
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
This is what I use for my different add-ons & it works absolutely fine for me.
<?php 
$page_selector = Loader::helper('form/page_selector');
if ($controller->page_link) {
   print $page_selector->selectPage('page_link', $controller->page_link);
} else {
   print $page_selector->selectPage('page_link');
}
?>


Rony
dpidan replied on at Permalink Reply
dpidan
Did you ever resolve this? I have the same issue of the Page Selector not loading in modal.