Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » Trying to work with Tutorial.. problems :)

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

Page: 1
Go to End
Author Topic: 303 Views
  • silus
    Community Member
    2 Posts

    Trying to work with Tutorial.. problems :) Link to this post

    HI everybody!

    im new here, and i've build many websites with wordpress/joomla but its to much work and so, so after few weeks i've decided to use only this cms So, im building my first template and i try to go with the "Tutorial 1 - Building a Basic Site" (html and css finished already).

    when creating new file in mysite/code HomdePage.php and flushing page localhost:63464?flush=1 i cant change the home page to the new template coz its not there. i've copied the code, made new file and flushed.. cant see it. any help?

    och, and i'll be a pain in the ass for some time, but when i make my way into understending all the cms things i need i'll work with it so sorry, and thnak you for any reply and help that i can get

  • martimiz
    Forum Moderator
    1086 Posts

    Re: Trying to work with Tutorial.. problems :) Link to this post

    Hi Silus

    when you create a new pagetype like HomePage.phh, the next thing you need to do is call


    dev/build will update the database for the new pagetype and add HomePage to the list of Pagetypes SilverStripe recognizes.

    You'll be using a simple ?flush=1 when you need to refresh the cache after you change things like for instance in your templates...

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.