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.

General Questions /

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

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

Troble with new page type...


Go to End


2 Posts   1911 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