Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Adding simple page to CMS Admin

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

Page: 1
Go to End
Author Topic: 373 Views
  • finster
    Avatar
    Community Member
    1 Post

    Adding simple page to CMS Admin Link to this post

    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

    373 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.