PageSelector
class PageSelector (View source)
Methods
string
selectPage($fieldName, bool|int $cID = false, array $options = [])
Creates form fields and JavaScript page chooser for choosing a page. For use with inclusion in blocks.
quickSelect($key, $cID = false, $miscFields = [])
No description
selectMultipleFromSitemap($field, $pages = [], $startingPoint = 'HOME_CID', $filters = [])
No description
selectFromSitemap($field, $page = null, $startingPoint = 'HOME_CID', SiteTree|null $siteTree = null, $filters = [])
No description
Details
string
selectPage($fieldName, bool|int $cID = false, array $options = [])
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.
```.
quickSelect($key, $cID = false, $miscFields = [])
No description
selectMultipleFromSitemap($field, $pages = [], $startingPoint = 'HOME_CID', $filters = [])
No description
selectFromSitemap($field, $page = null, $startingPoint = 'HOME_CID', SiteTree|null $siteTree = null, $filters = [])
No description