Jump to:

1366 Posts in 486 Topics by 520 members

Themes

SilverStripe Forums » Themes » Probably an easy question!

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 532 Views
  • whitemop
    Avatar
    Community Member
    1 Post

    Probably an easy question! Link to this post

    I'm a Silverstripe greenie... And it's confusing!

    I'm working on an existing SS installation with custom theme. In the theme Layout files, I want to replicate the display from BlogHolder.ss in HomePage.ss. I go in to the SS files, copy the code from the first file to the second, but it doesn't work.

    I can't work out from the code why this wouldn't work. Is there a Silverstripe idiosyncrasy that I'm not aware of?

    Thanks!

  • Nobrainer Web
    Avatar
    Community Member
    134 Posts

    Re: Probably an easy question! Link to this post

    Hi whitemop,

    That would generally be the way to go, but the data the template displays, needs to be available to the template.
    You are proberly trying to render some data from blogposts, and they are not available at the frontpage.
    Perhaps you can wrap the code inside a <% control childrenOf(20) %> where "20" is the ID of your blogpage.

    Try to paste the template code at http://www.sspaste.com/ and link it here.

  • bryllupsfotograf
    Avatar
    Community Member
    1 Post

    Re: Probably an easy question! Link to this post

    Silverstripe is amazing

    /Bryllupsfotograf
    http://www.voresstoredag.net
    http://www.voresstoreja.dk

    532 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.