Hi,
I successfully added some page types, like this:
class consultingPage extends Page {
static $db = array();
static $has_one = array();
public function pageCodeForCss() {
return 'consulting';
}
}
class consultingPage_Controller extends Page_Controller {
}
I have updated the database, and consultingPage is now a page type. Here are some questions I have:
1. What is the proper way to delete the pagetype again?
2. How can I access the extra variable I would like to add to the pageType from within the .ss templates?
3. within the CMS, how can I change the add pagetype list? I want certain templates only to be available in certain parts of the sites, plus, I dont really want the newsletter option to be available, etc...
Thanks
Nicolaas