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?
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.
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
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.
The contents of the HomePage.php file (with 3 columns of content) is available here.
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
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