Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » How can I add stuff to the image class and show in popup?

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 1561 Views
  • joelg
    Community Member
    129 Posts

    Re: How can I add stuff to the image class and show in popup? Link to this post

    Great thanks, that did the job with the SimpleTreeDropdownField. Brilliant!

    Regarding the last thing, I've done this to remove the extended options from folders and it works:

    public function updateCMSFields(FieldSet &$fields) {
          if ($this->ClassName == "image")
              $fields->push(new DropdownField('Kategori','Kategori', singleton('File')->dbObject('Kategori')->enumValues()));
              $fields->push(new SimpleTreeDropdownField('SiteLinkID','Vælge en side (hvis kategorien er et link)'));
              $fields->push(new FileIFrameField('BilledeThumb'));
          return $fields;

    Would you consider this good practise or is there a smarter way?

Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.