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.

Archive /

Our old forums are still available as a read-only archive.

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

default to not have any themes or be set as tutorial


Go to End
Reply


9 Posts   2877 Views

Avatar
spullen

14 Posts

7 February 2008 at 8:28am

I am wondering if there is a way to make a bare bones install so I don't need to have any themes or be set as the tutorial. I just want the plain, here is a Page.ss empty file (or something like that) that I can start from.

Avatar
dio5

Community Member, 501 Posts

7 February 2008 at 8:45am

Not sure, but why?

Just start with blackcandy on install, and make your own theme after installation. You'll only have to change the SSViewer::set_theme('blackcandy'); in _config.php

Avatar
spullen

14 Posts

7 February 2008 at 9:18am

So is there no point to the templates, css folders in the mysite folder?

Avatar
dio5

Community Member, 501 Posts

7 February 2008 at 9:31am

Edited: 07/02/2008 9:32am

No, you should only use the mysite/code folder.

The rest stays blank afaik.

Use the theme folder for your own themes (i e templates, css, images).

Avatar
SilverRay

Community Member, 167 Posts

7 February 2008 at 12:17pm

I use the 'mysite' folder for my complete site and in mysite/_config.php I use:

global $project;
$project = 'mysite';

(of course I rename 'mysite' to whatever project I'm working on, I just use 'mysite' as an example here...)

Is there anything wrong in doing that?

Avatar
dio5

Community Member, 501 Posts

7 February 2008 at 12:30pm

Edited: 07/02/2008 12:31pm

hm, it's probably the old way of doing things, might be good for older versions of SS.

http://doc.silverstripe.com/doku.php?id=themes:developing#reference

Avatar
SilverRay

Community Member, 167 Posts

7 February 2008 at 1:07pm

dio5, I'm hijacking this thread a little, but I have a site in which I have a few many_many relations set-up, but the Search function doesn't seem to search in those tables (Search is set-up as per the tutorial)... any tips?

Avatar
spullen

14 Posts

7 February 2008 at 2:43pm

Okay I see how this everything is layed out now. So the the way the site is supposed to look goes into the themes folder. And then everything that goes along with your site not already in the theme folder is in the mysite folder, and everything pertaining to that code goes there, so I create a HomePage model and controller, and then any layout that goes along with that goes there. I hope I am getting how it is implemented right, it appears that ss looks for files there too after going through the theme folder, but not there first.?

Go to Top