Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » choose template

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

Page: 1
Go to End
Author Topic: 1463 Views
  • mdm
    Avatar
    Community Member
    19 Posts

    choose template Link to this post

    I searched some and I cant find out where in the admin panel you choose template.
    I havent done anything after the installation so no mods are installed, I have uplaoded template to template dir on Ftp.

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: choose template Link to this post

    Hi mdm, welcome to Silverstripe

    Silverstripe does not allow you to change themes from with the admin panel (at least not out of the box). Inorder to change the theme you need to change the following in your _config.php (located in /mysite or /tutorials depending on your selection at install)

    SSViewer::set_theme('themeName');

    The idea behind SS is to create a clear line between the developer and the content editor and the theme is something that (in SS's eyes) should be decided by the developer.

    hope that helps

  • mdm
    Avatar
    Community Member
    19 Posts

    Re: choose template Link to this post

    oh!! That wasnt such a clear thing to think of from my part
    Thanks for the help.

    Tried it, "mysite" dir. Worked like a charm.
    Will start testing what this one can do - have tested 5 CMS today and so far SS is the one winning the race I think.
    Got so much potential and much more easy understanding than the others I tested.

    Good forum aswell for help and fast reply!

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: choose template Link to this post

    yep, SS is really a fantastic system and the community is building by the day

    Just as a side note, if you want to just use the 'mysite' folder for your templates/images/css files then you don't need to set a theme at all.
    SS will first look in your project directory (also set in _config.php at the top: $project='mysite') for these files and if it can't find them it will then check the current themes directory. So if you don't want to use the theme directory at all then you can just delete the 'SSViewer::set_theme' line from the _config.php

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