Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Multiple Page Types

Go to End

3 Posts   1874 Views


Community Member, 6 Posts

21 April 2011 at 12:18pm

I'm wanting to create a page that is a Redirector page but also has a custom page template. I know I can do this by creating a new CMS field but I really want to avoid this as the website is over-complicated already.

Is there any way that a page can be both a RedirectorPage and a custom Page?


Forum Moderator, 5523 Posts

8 June 2011 at 7:42pm

Is there any way that a page can be both a RedirectorPage and a custom Page?

Use SiteTreeDecorator to decorate the RedirectorPage or subclass the RedirectorPage class with your custom class.


class CustomRedirectorPage extends RedirectorPage {

  //.. your custom code.

class CustomRedirectorPage_Controller extends RedirectorPage_Controller {



Community Member, 15 Posts

8 June 2011 at 7:44pm

so if I understand... you want a page that is sometimes a redirectorpage and an othet time a normal page? In that case just switch from page type in the behaviour tab.

If you want to have all the functionality in one page, let me know. I already made something like that!