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've moved the forum!

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.

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   1628 Views

Avatar
Multidots

Community Member, 16 Posts

8 February 2010 at 8:21pm

Hi

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.

Avatar
Multidots

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.