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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Different layout style for different blogholder

Go to End

2 Posts   1227 Views


Community Member, 16 Posts

8 February 2010 at 8:21pm


I am using BlogHolder page type to display list of inner BlogHolder and it's blogentry. I have applied different layout style for individual BlogHolder page using their id. Now I got problem that is when I copy a particular BlogHolder page type with it's sub blog holder page and blog entries it apply default layout style. I want it to copy the same layout from the original BlogHolder.

Please help.


Community Member, 16 Posts

17 February 2010 at 7:26pm

Hi All,

I have found the solution for this.
I have to extended the BlogHolder controller. As I require the page type for different layout. It looks like this :

class NewPageName extends Page {

class NewPageName_Controller extends Page_Controller {
// My custom function

It works for me.