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.

Customising the CMS /

Adding simple page to CMS Admin


Reply


388 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 [url=http://www.silverstriperesources.com/articles/creating-a-totally-custom-page-in-the-admin-area/]this tutorial[/url]

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