Jump to:

23380 Posts in 18311 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Troble with new page type...

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 739 Views
  • makeit
    Avatar
    Community Member
    15 Posts

    Troble with new page type... Link to this post

    Hello,

    I've built a site and feel comfortable and wanted to do some customization. Been running with the pixelgreen theme. I simply wanted to add a new page type (my default Page has a sidebar) that excludes the sidebar. I've created a PageLite.php in /mysite/code and a PageLite.ss file in /themes/pixelgreen/templates - I can not get the /db/build to catch this new page - I have relocated the PageLite.php file to /tutorial/code as well and run the db/build with no luck. The PageLite.php file seems correct (see below) and I've tried to follow tutorial #1 - Any ideas?

    Thanks,

    Bob

    <?php

    class PageLite extends Page {
    static $db = array(
    );
    static $has_one = array(
    );
    }

    class PageLite_Controller extends Page_Controller {
    }

    ?>

  • makeit
    Avatar
    Community Member
    15 Posts

    Re: Troble with new page type... Link to this post

    OK,

    So sometimes I'm not too bright... Needed to refresh the CMS admin page - Everything works...

    Bob

    739 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.