Jump to:

1347 Posts in 439 Topics by 514 members

Themes

SilverStripe Forums » Themes » Balance theme - how do I design the index page?

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 2299 Views
  • StillLearning
    Avatar
    Community Member
    12 Posts

    Balance theme - how do I design the index page? Link to this post

    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?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Balance theme - how do I design the index page? Link to this post

    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

  • StillLearning
    Avatar
    Community Member
    12 Posts

    Re: Balance theme - how do I design the index page? Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Balance theme - how do I design the index page? Link to this post

    The contents of the HomePage.php file (with 3 columns of content) is available here.

  • davidm2010
    Avatar
    Community Member
    107 Posts

    Re: Balance theme - how do I design the index page? Link to this post

    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

  • davidm2010
    Avatar
    Community Member
    107 Posts

    Re: Balance theme - how do I design the index page? Link to this post

    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

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