17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 819 Views |
-
is it possible to add a image field to a redirector page type

7 October 2008 at 10:42pm
I get an error when I create a page with the following model/controller setup.
Is something like this possible?class LinkHolder extends RedirectorPage {
static $db = array(
);
static $has_one = array(
'Photo' => 'Image'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Images", new ImageField('Photo'));
return $fields;
}
}class LinkHolder_Controller extends RedirectorPage_Controller {
}
| 819 Views | ||
|
Page:
1
|
Go to Top |

