3212 Posts in 847 Topics by 809 members
| Go to End | ||
| Author | Topic: | 2790 Views |
-
Re: stuck in tutorial 1

8 January 2009 at 11:57pm Last edited: 9 January 2009 12:01am
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
-------------IncludesHope thats clear, any questions just ask
-
Re: stuck in tutorial 1

9 January 2009 at 12:28am
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
-
Re: stuck in tutorial 1

9 January 2009 at 12:54am Last edited: 9 January 2009 1:47am
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?
-
Re: stuck in tutorial 1

9 January 2009 at 5:14am
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
| 2790 Views | ||
| Go to Top |



