21293 Posts in 5733 Topics by 2602 members
General Questions
SilverStripe Forums » General Questions » Create Page with Controller and Template only (not hidden, but *non-existent* in cms site tree)
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 796 Views |
-
Create Page with Controller and Template only (not hidden, but *non-existent* in cms site tree)

24 August 2010 at 4:10am
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
-
Re: Create Page with Controller and Template only (not hidden, but *non-existent* in cms site tree)

24 August 2010 at 4:44am
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')
); -
Re: Create Page with Controller and Template only (not hidden, but *non-existent* in cms site tree)

24 August 2010 at 11:52pm
Dank u wel Martijn / Much Appreciated!
| 796 Views | ||
|
Page:
1
|
Go to Top |


