function FieldHolder()
 {
     if (!$this->controller->ID) {
         return "";
     }
     return parent::FieldHolder();
 }
 public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $actionlinks_manager = new DataObjectManager($this, 'ActionLinks', 'ActionLink', array('Image_Small' => 'Image_Small', 'Name' => 'Name', 'ShortDescription' => 'ShortDescription', 'Link' => 'Link', 'LinkMember' => 'Link for Members', 'getDisplayStatus' => 'Displayed?'), 'getCMSFields_forPopup');
     $actionlinks_manager->setConfirmDelete(true);
     $actionlinks_manager->addPermission("duplicate");
     $downloads_manager = new FileDataObjectManager($this, 'GetInvolvedDownloads', 'GetInvolvedDownload', 'Attachment', array('Name' => 'Name', 'Description' => 'Description'), 'getCMSFields_forPopup');
     $downloads_manager->setConfirmDelete(true);
     $downloads_manager->addPermission("duplicate");
     $f->addFieldToTab("Root.Content.ActionLinks", $actionlinks_manager);
     $f->addFieldToTab("Root.Content.Downloads", $downloads_manager);
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('ActionBoxMessage', 'Actionbox description text', 2, 4));
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('DownloadBoxMessage', 'Downloadbox description text', 2, 4));
     $f->removeFieldFromTab("Root.Content.Main", "Content");
     return $f;
 }
 function getCMSFields()
 {
     $f = parent::getCMSFields();
     $downloads_manager = new FileDataObjectManager($this, 'MediaReleasedDownloads', 'MediaReleaseDownload', 'Attachment', array('Title' => 'Title', 'Description' => 'Description', 'getDOMThumbnail' => 'Photo'), 'getCMSFields_forPopup');
     $downloads_manager->setConfirmDelete(true);
     $downloads_manager->addPermission("duplicate");
     $f->addFieldToTab("Root.Content.LoveYourCoastLogo", new HtmlEditorField('LYCLogoMessage', 'Text for Love Your Coast Logo Download Link', 2, 4));
     $f->addFieldToTab("Root.Content.LoveYourCoastLogo", new ImageField('LYCLogoIcon', 'Download Icon'));
     $f->addFieldToTab("Root.Content.LoveYourCoastLogo", new FileUploadField('LYCLogoFile', 'Love Your Coast Logo File'));
     $f->addFieldToTab("Root.Content.MediaReleaseDownloads", $downloads_manager);
     $f->removeFieldFromTab('Root.Content.Main', 'Content');
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('Content', 'Content', 2, 2));
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('NewsArticlesMessage', 'News Articles title and optional description', 2, 2));
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('MediaReleasesMessage', 'Media Release Links title and optional description', 2, 2));
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('FlickrMessage', 'Latest Flickr link text', 2, 2));
     $f->addFieldToTab('Root.Content.Main', new HtmlEditorField('YoutubeMessage', 'Latest Youtube link text', 2, 2));
     return $f;
 }
 /**
  *
  *
  * @return unknown
  */
 public function getCMSFields()
 {
     $f = parent::getCMSFields();
     $manager = new FileDataObjectManager($this, 'Episodes', 'PodcastEpisode', 'Attachment', array('Title' => 'Title', 'Artist' => 'Artist'), 'getCMSFields_forPopup');
     $manager->setUploadFolder('/Podcasts/');
     $f->fieldByName('Root.Content')->insertBefore(new Tab(_t("PodcastPage.Episodes", "Episodes")), 'Main');
     $f->fieldByName('Root.Content')->insertBefore(new Tab(_t("PodcastPage.PodcastDetails", "Podcast Details")), 'Main');
     $f->addFieldToTab("Root.Content.PodcastDetails", new LiteralField('Explanation', '<h2>Podcast Details</h2><p>These details are used in the RSS feed for the podcast - the RSS feed is compatible with iTunes.</p>'));
     $f->addFieldToTab("Root.Content.PodcastDetails", new TextField('PodcastTitle', _t("PodcastPage.PodcastTitle", "Podcast Title")));
     $f->addFieldToTab("Root.Content.PodcastDetails", new TextField('Author', _t("PodcastPage.PodcastAuthor", "Podcast Author")));
     $f->addFieldToTab("Root.Content.PodcastDetails", new TextField('OwnerEmail', _t("PodcastPage.OwnerEmail", "Podcast Owner Contact Email")));
     $f->addFieldToTab("Root.Content.PodcastDetails", new CheckboxField('Explicit', _t("PodcastPage.Explicit", "Explicit:")));
     $f->addFieldToTab("Root.Content.PodcastDetails", new CheckboxField('PagePerEpisode', _t("PodcastPage.PagePerEpisode", "Allow episode notes (including a page for each episode to display them:")));
     $f->addFieldToTab("Root.Content.PodcastDetails", new TextAreaField('Summary', _t("PodcastPage.Summary", "Podcast Summary")));
     $f->addFieldToTab("Root.Content.PodcastDetails", new FileIFrameField('Image', _t("PodcastPage.Image", "Podcast Image")));
     $f->addFieldToTab("Root.Content.Episodes", $manager);
     return $f;
 }
 public function setParentClass($class)
 {
     parent::setParentClass($class);
     $this->joinField = $this->getParentIdName($class, $this->sourceClass);
 }
 public function getQueryString($params = array())
 {
     $imagesize = isset($params['imagesize']) ? $params['imagesize'] : $this->imageSize;
     return parent::getQueryString($params) . "&ctf[{$this->Name()}][imagesize]={$imagesize}";
 }