Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » help with installing a theme.

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: 1941 Views
  • Maximus
    Avatar
    Community Member
    2 Posts

    help with installing a theme. Link to this post

    Hello I just installed silverstripe and have to say I love it but Im trying to install a new theme but when ever I add SSViewer::set_theme("olivesunset"); to my config file nothing works I did ?flush=1 here is the contents of my config file.

    <?php

    /*
    * This file is needed to identify this as a SilverStripe module
    */
    SSViewer::set_theme("olivesunset");
    // Extend the Member with e-commerce related fields.
    DataObject::add_extension('Member', 'EcommerceRole');

    Director::addRules(50, array(
       ShoppingCart_Controller::$URLSegment . '/$Action/$ID' => 'ShoppingCart_Controller'

    ));

    // This is the default shipping method class - SimpleShippingModifier.
    // To use your own one, copy this line, with the second argument as your
    // custom shipping class into mysite/_config.php - this will override
    // SimpleShippingModifier
    Order::set_modifiers(array('SimpleShippingModifier'));

    // Add additional fields to the MemberTableField in the CMS for e-commerce.
    MemberTableField::addPermissions(array('show', 'export'));
    MemberTableField::addMembershipFields(array(
       'Address' => 'Address',
       'AddressLine2' => 'Address Line 2',
       'HomePhone' => 'Home Phone',
       'MobilePhone' => 'Mobile Phone',
       'City' => 'City',
       'Country' => 'Country'
    ));

    ?>

    Thanks in advance

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: help with installing a theme. Link to this post

    I believe you are entering it in the _config file for the ecommerce module rather then the _config file under the mysite folder? I dont know why that would be an issue but perhaps try that

  • Maximus
    Avatar
    Community Member
    2 Posts

    Re: help with installing a theme. Link to this post

    yeah that was the problem thanks.

  • Luiyis
    Avatar
    Community Member
    1 Post

    Re: help with installing a theme. Link to this post

    There is NO _config.php file under mysite in version 2.2.2....

    ???

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: help with installing a theme. Link to this post

    Have you run through the installer?? There is no 'file' the _config file is created when you use the installer.

  • CMS_mike
    Avatar
    Community Member
    1 Post

    Re: help with installing a theme. Link to this post

    I can vouch for Luiyis - there is no _config.php file in the mysite folder in the 2.2.2 version.

    I've checked my Godaddy installed version (I assume its been correctly installed by their application installer)

    Can someone supply the code thats contained on this page, so I can create my own _confiq file.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: help with installing a theme. Link to this post

    Yep this seems to be an issue with how GoDaddys installer for SS works.

    You can see an outline of an _config.php file here - http://pastie.org/215282

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