Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » .ss issues

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 783 Views
  • Jon
    Avatar
    Community Member
    2 Posts

    .ss issues Link to this post

    Hello Im sort of a newb,

    I downloaded a theme and am modifying it. I understand css but cannot figure out why everytime I make a change to the .ss file my site goes blank. I haved tried ?flush=1. The reason I need to edit the .ss file is to get rid of the title and some <div> padding issues. Its not fixable by editing the layout.css

    I can get it all to work and look right in firebug but how can I take that html code and put it into my page.ss file with out everything going haywire? Or is the page.ss file even the problem?

    Thanks

  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    Re: .ss issues Link to this post

    Hi Jon-

    First, do you have your site in developer's mode? That can be a big help when working on your templates. If you don't, go to /mysite/_config.php and enter:

    Director::set_environment_type('dev');

    Second, can you post some code from your Page.ss file?

    Thanks!

  • Jon
    Avatar
    Community Member
    2 Posts

    Re: .ss issues Link to this post

    Hey thanks for responding,

    So when i entered that code over my existing code of :

    Director::set_dev_servers(array(
       'localhost',
       '127.0.0.1',

    and I got a blank browser... im guessing because im still trying to use the temporary server of silverstripe? maybe? I do have my own server space but Im struggling to get it to work, not sure if Im entering in the right mySQL database info on the config.html... what should that be?

    Thanks again

  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    Re: .ss issues Link to this post

    Hi Jon-

    You'll want to include both pieces of code in the _config.php file, instead of replacing it.

    The code you cleared out sets the development server, then set_environment_type to 'dev' will output errors to the browser.

    If you have both pieces in there and it's still coming up blank, then it's most likely a problem with the template. If you could post your Page.ss file, I can take a look and maybe we can get that solved!

    -John

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