Hi,
Could someone explain how to make a page (with layout and controller) but does not appear in the site tree (not hiding from menus, but non-existent in the site tree), like Security/login form?
Barry
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi,
Could someone explain how to make a page (with layout and controller) but does not appear in the site tree (not hiding from menus, but non-existent in the site tree), like Security/login form?
Barry
class SomePage extends Page implements HiddenClass{
}
Or dont create a model, but only a controller. Name the template CustomPage.ss
class CustomPage_Controller extends Page_Controller{
}
// add this to _config.php
Director::addRules(100,
array('myurlsegmenttoaccessthiscontroller//$Action/$ID/$OtherID' => 'CustomPage_Controller')
);
Dank u wel Martijn / Much Appreciated!