Load Page Selector with Search as the default tab

Permalink
Can anyone point me in the direction of modifying the Page selector

I would like it to list pages only below a certain page, and when you click select page it loads up by default on the search tab so that they can be displayed in alphabetical order.

This is to say I have a gallery that has 100+ pages, each album can have a client assigned(page), so when I click Select Page I would like it to only show the pages starting at my gallery page (in this instance node=69)

I can load the initial node to be the starting page but every time I click either "full" or "one level" it defaults to being 0/1 I assume this is the ccm.sitemap.js (within the function ccm_sitemapSelectDisplayMode())

I would like the results to be sortable, and having it load by default on the search tab makes a bit more sense to me, as this could then be sorted and filtered.

<?php 
/**
 * @package Helpers
 * @category Concrete
 * @subpackage Forms
 * @author Andrew Embler <andrew@concrete5.org>
 * @copyright  Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
 * @license   http://www.concrete5.org/license/...     MIT License
 */
/**
 * Special form elements for choosing a page from the concrete5 sitemap tool.
 * @package Helpers
 * @category Concrete
 * @subpackage Forms
 * @author Andrew Embler <andrew@concrete5.org>



My custom sitemap
<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
Loader::helper('concrete/dashboard/sitemap');
$cID = 1;
if (isset($reveal)) {
   $nc = Page::getByID($reveal);
   $cID = $nc->getCollectionID();
   $node = $nc->getCollectionParentID();
   if ($node < 1) {
      $node = 1;
   }
}
//$cID = 1;
if (isset($selectedPageID)) {
   $cID = $selectedPageID;


Any help on this matter would really be gratefully accepted. Im sort of in a bit of a rut with it as my JavaScript knowledge is not to good.

Thanks
Sean

TheRealSean
 
TheRealSean replied on at Permalink Reply
TheRealSean
Still looking to do this anyone out there able to help?