Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ClientPage extends Page {
- static $db = array(
- );
- static $has_one = array(
- 'SiteImage' => 'Image',
- 'WebPath' => 'Text'
- );
- function getCMSFields() {
- $fields = parent::getCMSFields();
- $fields->addFieldToTab('Root.Content.Thumbnail', new ImageField('SiteImage'));
- $fields->addFieldToTab('Root.Content.Main', new TextField(
- $name = "WebPath",
- $value = "Please enter client URL"
- ), 'Content');
- return $fields;
- }
- }
- class ClientPage_Controller extends Page_Controller {
- }
- ?>
Add Comment
Please, Sign In to add comment