4952 Posts in 14381 Topics by 1491 members
|Go to End|
26 January 2014 at 5:53pm Last edited: 27 January 2014 5:25am
I am very new to silverstripe and I've spent many days trying different things and researching many different websites but I cannot figure this out for the life of me. I was hoping you can help.
So I downloaded silverstripe cms and framework and uploaded it to root directory of my server. I've loaded my page and it asked to me setup my database and all that initial stuff which I did. The page then loaded without problems.
Then I went and I've uploaded my theme to the theme folder, I've also copied over all the php files in my/code and all the Upload Images from assets/Uploads.
Then I went to cms and in settings I've changed the theme to my own. I then loaded the site with /dev/build then with /?flush=1.
Next I opened CMS and created a new home page, it worked good for a minute, the moment I gave it the path /home it broke. No css seems to be loading, and neither is the content from $Layout.
Any ideas as to why the page would not work when its /home if I make the home page and call it /test it works without problems.
I also have a news page that displays all articles, but for some reason the its not detecting the php logic I have put in place to make this happen. In cms it use disable all other pages once I selected ArticlePage and put it under ArticleHolder, now it doesn't do that either. I think that i'm missing some stuff but i'm not sure what. What did I not copy over that I should of?
Ok so I fixed all of my problems by adding the following line to _config.php Director::setBaseURL('/');
I"m leaving the thread in case somebody runs into the same problem as I did.
Note: If you are planning to start with the database from scratch and not import anything, before you create any pages in CMS, implement this, if you have not done it like this then remove the line, and delete all the pages and then add the line. For some strange reason I have a news page added and then when I added the line it would not show up in the CMS.
Also don't forget to build and flush your website!
|Go to Top|