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.

General Questions /

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

Troble with new page type...


Reply


2 Posts   813 Views

Avatar
makeit

Community Member, 15 Posts

12 January 2009 at 9:32am

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 {
}

?>

Avatar
makeit

Community Member, 15 Posts

12 January 2009 at 10:59am

OK,

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

Bob