Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

stuck in tutorial 1


Go to End
Reply


15 Posts   3212 Views

Avatar
Carbon Crayon

Community Member, 598 Posts

8 January 2009 at 11:57pm

Edited: 09/01/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: [url]http://doc.silverstripe.com/doku.php?id=recipes:example_config_file[/url]

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 :)

Avatar
servalman

Community Member, 211 Posts

9 January 2009 at 12:10am

thanks a lot for your support !

Avatar
Carbon Crayon

Community Member, 598 Posts

9 January 2009 at 12:13am

Your welcome :)

Avatar
servalman

Community Member, 211 Posts

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

Avatar
Carbon Crayon

Community Member, 598 Posts

9 January 2009 at 12:54am

Edited: 09/01/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?

Avatar
servalman

Community Member, 211 Posts

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

Avatar
Sigurd

Forum Moderator, 628 Posts

9 January 2009 at 10:24am

Thanks guys for sorting this out :)

Go to Top