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.

Themes

Discuss SilverStripe Themes.

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

Balance theme - how do I design the index page?


Reply

6 Posts   2376 Views

Avatar
StillLearning

18 July 2009 at 10:08pm Community Member, 12 Posts

I have installed the balance theme without any problems becuase I liked the layout of the front page show in the demo. However, once installed i only have one editable section on my front page... the demo had three with user defineable images etc. What am I missing please? Why is the theme i have installed different from the demo one?

Avatar
Willr

19 July 2009 at 12:47am Forum Moderator, 5511 Posts

SilverStripe themes cannot contain PHP code or anything which effects the cms. In the demo site for instance we have extended the default pages with 2 extra HTMLContent fields. Tutorial 2 covers adding form fields to the cms which will allow you to setup your cms like the demo site - http://doc.silverstripe.com/doku.php?id=tutorial:2-extending-a-basic-site

Avatar
StillLearning

19 July 2009 at 2:03pm Community Member, 12 Posts

I see, thank you. That explains it. If i had time I would follow the tutorial and could probably work it out. Unfortunately I don't have the time. Is there somewhere I could download the relevant file(s) from and just copy them onto my server? Thanks again. Steve.

Avatar
Willr

20 July 2009 at 3:44pm Forum Moderator, 5511 Posts

The contents of the HomePage.php file (with 3 columns of content) is available [url=http://pastie.org/551717]here[/url].

Avatar
davidm2010

1 December 2009 at 7:01am Community Member, 107 Posts

Willr- Used your php file and everything shows up in the CMS. However, when I publish, I get only the image part of the content, nothing from the text portion. I did notice in the php part that was posted there we some single and double quotes mixed. I changed them all to single (after having the problem), but appreared to make no difference. I am using the HomePage.ss file that was a part of the theme package.

Any help would be appreciated.

David

Avatar
davidm2010

1 December 2009 at 1:16pm Community Member, 107 Posts

Got it to work.

One note. Anyone going to use this theme, you will need the Homepage.PHP code that Willr pasted above and follow his instructions, then do a /dev/build. Extract the tar file from the themes download and upload the balance folder only to themes. Then edit the HomePage.ss file to remove the site demo information that is in that file. Then it will work very well.

David