class PageSelector (View source)

Methods

string
selectPage($fieldName, bool|int $cID = false)

Creates form fields and JavaScript page chooser for choosing a page. For use with inclusion in blocks.

quickSelect($key, $cID = false, $args = array())

No description

selectMultipleFromSitemap($field, $pages = array(), $startingPoint = 'HOME_CID', $filters = array())

No description

selectFromSitemap($field, $page = null, $startingPoint = 'HOME_CID', SiteTree $siteTree = null, $filters = array())

No description

Details

string selectPage($fieldName, bool|int $cID = false)

Creates form fields and JavaScript page chooser for choosing a page. For use with inclusion in blocks.


    $dh->selectPage('pageID', '1'); // prints out the home page and makes it selectable.
```.

Parameters

$fieldName
bool|int $cID

Return Value

string

quickSelect($key, $cID = false, $args = array())

No description

Parameters

$key
$cID
$args

selectMultipleFromSitemap($field, $pages = array(), $startingPoint = 'HOME_CID', $filters = array())

No description

Parameters

$field
$pages
$startingPoint
$filters

selectFromSitemap($field, $page = null, $startingPoint = 'HOME_CID', SiteTree $siteTree = null, $filters = array())

No description

Parameters

$field
$page
$startingPoint
SiteTree $siteTree
$filters