Hi Chaps,
Im almost to the point of unvailing the new silverstripe intranet site to my company.
I have been tweaking a few things and have managed to kind of break it!
I have built an article system as per the docs on the help system.
This worked fine. Got a homepage created that displays the latest 5 entries and then tickered it using jQuery in a BBC stylee.
I then realised that all the users would have to enter in their usernames when they create news. I have the bright idea of having it auto populate this field based on who is logged in.
So i added this to the article page :
public function populateDefaults() {
parent::populateDefaults();
$memberName = Member::currentUser() ? Member::currentUser()->getName() : null;
$this->setField('Author', $memberName);
}
As per another forum post i found.
Works great!
My only issue is now that pages that were created before that mod are uneditable from the CMS.
I can remove them from the published site but whenever i try to remove them completely from the CMS i get a red 'server error'.
Im guessing its because those posts no longer relate to the tables in the database.
My question is how to get rid of these from the site?
Can anyone point me in the right direction please?
Many Thanks
Craig