17488 Posts in 4473 Topics by 1978 members
| Go to End | Next > | |
| Author | Topic: | 9230 Views |
-
Re: Tutorial 'Building a Basic Web Site' - database rebuild

6 August 2008 at 1:09pm
Sorry to steer you wrong initially... I was thinking MAMP Pro.
First, have you tried flushing the admin section yet?
Second, it shouldn't matter, but you could also try adding a dummy field to the HomePage type just to see if it will add that to the build?
<?php
/**
* Defines the HomePage page type
*/
class HomePage extends Page {
static $db = array(
'TestField' => 'Varchar'
);
static $has_one = array(
);
}class HomePage_Controller extends Page_Controller {
}
?>Keep us posted!
John
-
Re: Tutorial 'Building a Basic Web Site' - database rebuild

6 August 2008 at 9:11pm
What is the content of /mysite/_config.php?
-
Re: Tutorial 'Building a Basic Web Site' - database rebuild

7 August 2008 at 2:23pm Last edited: 7 August 2008 2:24pm
Hi John,
OK, I added that code into the HomePage.php file......nothing's happened that I know of. Am i supposed to do something with it to make it work?....???
Hi Phalkunz,
There isn't a mysite/_config.php file.
I have to say that this is not very well explained. I installed SS like any newbie and, in keeping with the instructions, have done everything from the tutorial folder...which is what the system seems to default to anyway. What IS mysite, why is it there, what should it do, can I administer more than one site from the admin?
needs clarification. i think, from what I have briefly read in the forums, other newbies have this problem, too!
regds
H -
Re: Tutorial 'Building a Basic Web Site' - database rebuild

7 August 2008 at 5:02pm
Sorry if you used the Tutorial option while installing it then Phalkunz refering to tutorial/_config.php
The _config.php file tells SilverStripe what code to use. If you selected the Tutorial theme while installing SS then you need to change all mysite/ references to tutorial/ .
The first 3 tutorials are all very much a bit behind in the times. We are currently in the process of rewriting this tutorials to provide a more useful, userfriendly introduction to SilverStripe since so much has changed in the last 18 months.
-
Re: Tutorial 'Building a Basic Web Site' - database rebuild

14 August 2008 at 12:57pm
Hi Willr,
OK, understand! Things move on quickly with development, not a bad sign, really!
However, think it might be best for me to revisit this CMS when these things are sorted and the tutorials rewritten to be uptodate - it's just so confusing and very negative for a newbie to get bogged down in things which don't work or aren't clearly explained. Sorry, that's the way user experience goes!
I would reiterate this claim by someone that its the CMS that "your mum can use". !!! Well, I look forward to that becoming a reality, but experience shows it's far from that and still a tool for experts only.
Now CMSimple.....that is the nearest I've got to something mum can use!! (http://www.cmsimple.com)
I'm sure SS is potentially much more powerful. I'll certainly be revisiting to see if ease-of-use is improving.
best regards,
-
Re: Tutorial 'Building a Basic Web Site' - database rebuild

7 September 2008 at 10:22am
Sorry you didn't have any luck with your trials, Hector. I just want to report that this thread was brilliant in helping me resolving my 'tutorial' issues. Using LAMP and was wondering why HomePage wouldn't show up like the tutorial says. Well, I had HomePage.php under tutorial/code. I moved it to mysite/code and triggered the rebuild. Voila!
I'm still going through the tutorial, but so far melikes!
I have battled with most of the big CMS'es out there except maybe "the Dru" and maybe that's why I know to continue banging my head against the computer until the bleeding stops(yes. Reverse).
Nice job so far guys.
-
Re: Tutorial 'Building a Basic Web Site' - database rebuild

24 October 2008 at 4:03am
Hi!
I've also just installed the cms and now going through the tutorial. Unfortunately, it went to an abrupt stop when the cms just shows a blank page after I put the HomePage.php in tutorial/code/. Have gone through everything that I found in this thread but I can't make it work. If I delete the code inside of HomePage.php the cms show up again!
What to do? -
Re: Tutorial 'Building a Basic Web Site' - database rebuild

18 November 2008 at 2:17pm
Same here. I am using Silver Stripe 2.2.3 and installed the basic / tutorial theme.
I rebuilt the database - there were a number of messages of tables created etc.
But after that, going to the admin page just shows a plain blank page.
Please HELP ...
| 9230 Views | ||
| Go to Top | Next > |




