17691 Posts in 4607 Topics by 2180 members
General Questions
SilverStripe Forums » General Questions » Different layout style for different blogholder
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
|
Page:
1
|
Go to End | |
| Author | Topic: | 605 Views |
-
Different layout style for different blogholder

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.
-
Re: Different layout style for different blogholder

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.
| 605 Views | ||
|
Page:
1
|
Go to Top |

