Jump to:

23450 Posts in 18899 Topics by 2877 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, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 872 Views
  • MULTIDOTS
    Avatar
    Community Member
    16 Posts

    Different layout style for different blogholder Link to this post

    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.

  • MULTIDOTS
    Avatar
    Community Member
    16 Posts

    Re: Different layout style for different blogholder Link to this post

    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.

    872 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.