Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » stuck in tutorial 1

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

Page: 1 2
Go to End
Author Topic: 3021 Views
  • Aram
    Avatar
    Community Member
    598 Posts

    Re: stuck in tutorial 1 Link to this post

    yep thats correct

    If you want to change to the 'mysite' folder you have 2 options:

    1. Reinstall SS and choose the option of 'blackcandy' on the install screen.

    2. Move all your php and js files into the appropriate 'mysite' code and javascript folders and your .ss, .css and images into a new theme folder in the themes dir. Then move the _config.php file from the tutorial folder into the mysite folder and change the $project variable to be 'mysite' instead of tutorial and change the theme name from 'tutorial' to be 'yourThemeName'.

    You can find an example _config.php here: http://doc.silverstripe.com/doku.php?id=recipes:example_config_file

    once done your file structure should look like this:

    -mysite
    -----code: .php files
    -----javascripts: .js files
    -----_config.php

    -themes
    -----myTheme
    ---------css: .css files
    ---------images: theme image files
    ---------templates: .ss files
    -------------Layout
    -------------Includes

    Hope thats clear, any questions just ask

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: stuck in tutorial 1 Link to this post

    thanks a lot for your support !

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: stuck in tutorial 1 Link to this post

    Your welcome

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: stuck in tutorial 1 Link to this post

    Me again

    I have this weird behavior in firefox :

    When I flush things after modyfying templates I do get the long list of tables and such. But nothing is changed in the source of the page (I took the hardcoded links away from my templates).

    But if I logout from cms the log in again after emptying cache it workd fine (I only have one set of CSS links).

    is this normal ?

    Thank you

  • Aram
    Avatar
    Community Member
    598 Posts

    Re: stuck in tutorial 1 Link to this post

    hmm, if I understand correctly it sounds like it might just be firefox caching the page.

    When modifying tempaltes and .php files I often ahve to do tools > clear Private Data and then leave cache checked. This will clear firefoxes local cache and reload the page entirely (also good when you change images).

    Also make sure you are doing a page flush by adding ?flush=1 to the end of whatever page you are updating, so if your URL is www.mysite.com, then go to www.mysite.com?flush=1 or www.mysite.com/somePage?flush=1. That flushes SS's cache.

    That should solve the problem unless I am misunderstanding?

  • servalman
    Avatar
    Community Member
    211 Posts

    Re: stuck in tutorial 1 Link to this post

    Hey

    Thanks

    For the cache I guess I'm doing the right thing because I get the page with all table listed.

    for firefox I do the same as you.

    Thanks again

    T

  • Sigurd
    Avatar
    Forum Moderator
    628 Posts

    Re: stuck in tutorial 1 Link to this post

    Thanks guys for sorting this out

    3021 Views
Page: 1 2
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.