17452 Posts in 4473 Topics by 1971 members
Page: 1 2
|Go to End|
14 August 2008 at 1:28pm
well depending on what you installed is where you should put the 'code' files. If you selected blackcandy then there should be a _config.php file in the mysite/ folder. Then you should put your PHP in the mysite/code/ folder otherwise if you selected the tutorial open then the _config.php file will be in tutorial/ and you need your code in tutorial/code/
14 August 2008 at 1:40pm
Ah yes, that's done it. I copied the StellaPage.php file to the mysite/code/ folder & that worked. Thank you.
So, if I'd like to change the default page behavior, I can modify mysite/code/Page.ss? Or is it always best to make a new Page type?
14 August 2008 at 1:47pm
Well it depends what you want to do. Ultimately if you want to do something that is going to be on most pages then do it on Page.php or if the page requires a template thats quite different to the 'standard' eg a Home Page then its easier to make a page type for it.
Same with if you have 'sections' of a site. Eg a News section then you would make a NewsHolder.php file and a NewsItem.php file. The newsholder which holds all the News and the news page is each article.
Page: 1 2
|Go to Top|