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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Adding simple page to CMS Admin


Go to End


964 Views

Avatar
finster

Community Member, 1 Post

21 April 2013 at 1:36am

Edited: 21/04/2013 1:37am

Hi all,

I'm new to SS so please bear with me. I'm trying to add an extra page to the CMS, and I've been following this tutorial

When I copy the files across, the system crashes (Segmentation fault in the apache error log).

I've tried to make sense of what is going on, and I think that the issue is the "index" method in "customHelp.php" - when I rename "index" to something else, I get an entry in the admin menu, but obviously nothing is displayed when I click on it.

Here's the code: -

<?php

class customHelp extends LeftAndMain  {
	
	static $url_segment = "customHelp";
	
	static $menu_title = "Site Help";
	
	static $allowed_actions = array (	
		'customHelp'	
	);
		
	public function index() {
		return $this->renderWith('customHelp');
	}
	
	public function init() {
		parent::init();
	}

}

Has anybody got any ideas what is going on? (Or alternatively an alternative way to just get an extra page in the admin menu).

Thanks in advance...

PS I'm running version 3.0.5