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.

Themes /

Discuss SilverStripe Themes.

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

Probably an easy question!


Go to End


3 Posts   2018 Views

Avatar
whitemop

Community Member, 1 Post

14 November 2012 at 9:38pm

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!

Avatar
Nobrainer Web

Community Member, 138 Posts

16 November 2012 at 6:23am

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.

Avatar
bryllupsfotograf

Community Member, 1 Post

27 November 2012 at 11:12pm

Silverstripe is amazing :D

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