Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ReferencePage extends Page {
- public static $db = array(
- 'Address' => 'Text',
- 'Country' => 'Text',
- 'Mission' => 'Text',
- 'Website' => 'Text'
- );
- public static $has_one = array();
- function getCMSFields() {
- $fields = parent::getCMSFields();
- $fields->removeFieldFromTab(
- 'Root.Content.Main',
- 'Content'
- );
- $fields->addFieldsToTab(
- 'Root.Content.Main',
- array(
- new TextField('Address'),
- new TextField('Country', 'Country in ISO 3166 Code (see parent page help)', null, 2),
- new TextField('Mission'),
- new TextField('Website')
- )
- );
- return $fields;
- }
- }
- class ReferencePage_Controller extends Page_Controller {
- }
- ?>
Add Comment
Please, Sign In to add comment