Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class BlogEntryDecorator extends DataObjectDecorator {
- function extraDbFields() {
- return array(
- 'has_one' => array(
- 'Dokument' => 'File',
- 'Obrazek' => 'Image',
- )
- );
- }
- function updateCMSFields(FieldSet &$fields) {
- $fields->addFieldToTab("Root.Content.Dokument", new FileIFrameField("Dokument", "Dokument"));
- $fields->addFieldToTab("Root.Content.Obrazek", new ImageField("Obrazek", "Obrazek"));
- }
- }
- ?>
Add Comment
Please, Sign In to add comment