4621 Posts in 1397 Topics by 1392 members
|Go to End|
19 January 2009 at 10:12am
Hi. I have just installed SS under WAMP. So far so very impressed.
I'm going through the tutorial and I seem to have some basic misapprehension. My assumption (and the choice I made during the install process) is that the CMS is altering the Tutorial site. However, the template (.ss) file in the tutorial site doesn't seem to correspond to the page I see at http://localhost/silverstripe/. I can even delete the whole tutorial folder without affecting that site. I then assumed i must actually be working on the MySite folder but that doesn't contain any templates.
Maybe it's just that it's approaching midnight on a Sunday here but I'm super-confused. Any help would be much appreciated!
19 January 2009 at 10:21am
I just had a look at the MySQL database that was built during installation and it is indeed SS_MySite. Can I copy the /tutorial files into /mysite? I'm still a bit puzzled that the site works although there is no template defined under /mysite.
I imagine there must be a way to get SS to create a new database for a different site on the same server - being a total neophyte most of my questions are currently probably a bit ridiculous. Could someone maybe just give me a URL for the documentation regarding multiple site implementations?
19 January 2009 at 11:10am
This is super confusing. This is what I always do:
1) Copy /tutorial/_config.php to /mysite/
2) Change the global $project to "mysite"
3) Make sure there's a Page.php in /mysite/code. (I think there is) If not, copy it from tutorial
4) Create /mysite/templates/Page.ss as <h1>Hello</h1> or whatever you want
5) Delete the /tutorial/ folder.
I'm sure this isn't the right way, but it's what I always do. I've never understood the whole "tutorial" concept. I find it annoying.
19 January 2009 at 12:44pm
It is quite confusing for people. I undertook some work to make it more straightforward in 2.3...
----- In < 2.3 -----
If you install with 'BlackCandy' option then your code and config file is stored in mysite/ and your theme is set to themes/blackcandy
If you install with 'Tutorial' option then your code and config file is stored in tutorial/ and your theme is set to blank (as all the tutorial code is stored in tutorial/templates rather then a Theme
----- In 2.3+ -----
No matter what theme you install your code is stored in mysite/ your html is stored in themes/themeyouchoose. Depending on what theme you choose (tutorial / blackcandy) all it does is set this line in your mysite/_config.php file - SSViewer::set_theme('BlackCandy');
Future plans, in the near future we are planning on removing / rewriting the tutorials on the site as they are over 2 years old and a tad out of date for what they explain. This is why in < 2.3 the tutorial html was not a 'theme' as this was created before we had the functionality of themes. At this time we will be removing the tutorial theme completely.
This will be replaced with a Recipe Site that you will be able to download the code / templates and the tutorials will be updated with this (screenshots, code statements etcs) and at least time we will tidy up the install procedure.
21 January 2009 at 2:34am
Thanks for the helpful responses! I'll look up the implications of multi-site installations on a single server when I get there.
4 March 2009 at 12:20am
New tutorials would be a godsend, it has been really confusing trying to set this up on a mac
|Go to Top|