Jump to:

3401 Posts in 979 Topics by 855 members

Template Questions

SilverStripe Forums » Template Questions » Change Template in tutorial doesn't work - need help

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

Page: 1
Go to End
Author Topic: 2600 Views
  • Toomanyidstakenalready
    Avatar
    Community Member
    5 Posts

    Change Template in tutorial doesn't work - need help Link to this post

    I am a new user to Silverstripe.
    I am walking through the tutorial.
    I am at the section "Using a different template for the home page"
    I have followed the code example to create a new template for my homepage and have tried to flush the database and the CMS so the "Page type" drop down list box on the "behaviour" tab will show my new template.
    After repeated tries to flush both the database and CMS (which seem to do the flush) the new template doesn't show up in the drop down list box.

    It seems as though I am not the first to have this problem so is there another way to create a template?

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Change Template in tutorial doesn't work - need help Link to this post

    Did you also create a new page type (ie, a new php file that lives in your /code/ directory) to use the template?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Change Template in tutorial doesn't work - need help Link to this post

    If SilverStripe is not 'finding' your PHP class then make sure its in the correct folder. It should be in 'mysite/code' or if you have /and are using a folder called tutorial then it should be in 'tutorial/code'

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