Jump to:

5453 Posts in 1674 Topics by 1198 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Adding tab to files popup

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

Page: 1
Go to End
Author Topic: 724 Views
  • Jaggi
    Avatar
    Community Member
    1 Post

    Adding tab to files popup Link to this post

    I'm trying to add a tab to the files popup in the CMS under "Files and Images", I also need this to have access to the data in the other tab so I know which file I'm viewing. I've tried a few things but not had any luck.

    Does anyone have a solution to this problem?

    Thanks.

  • netnerd85
    Avatar
    Community Member
    42 Posts

    Re: Adding tab to files popup Link to this post

    I would also like to add a new tab and fields to the Files Popup in the CMS under Files and Images. How can it be done?

  • netnerd85
    Avatar
    Community Member
    42 Posts

    Re: Adding tab to files popup Link to this post

    Found the solution after trying a lot of things:

    public function updateCMSFields(FieldSet &$fields) {
       $newTab = new Tab('NewTab', 'New Tab');
       $fields->insertAfter($newTab, 'Main');
       $newTab->fields()->push(new TextField('NewField'));
    }

    724 Views
Page: 1
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.