Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » How to set the height popup?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1610 Views
  • Tigermoon85
    Avatar
    Community Member
    6 Posts

    How to set the height popup? Link to this post

    Hi all,
    I used "$tablefield->setPopupWidth('800px')" to set the width popup.
    So, how to set the height popup.
    Thanks.

  • Dr0gaz
    Avatar
    Community Member
    37 Posts

    Re: How to set the height popup? Link to this post

    hi

    Is a good question!!

  • UncleCheese
    Avatar
    4085 Posts

    Re: How to set the height popup? Link to this post

    It's 60% of the window height. See dataobject_manager.js.

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: How to set the height popup? Link to this post

    should this work for FileDataObjectManager within a popup? ie a popup within a popup? the functionality of it is great but the sizing is a big issue.

    to summarize I have a dataobjectmanager of projects, when I edit or create a project the project popup is displayed, I then have an image gallery for each project which is controlled by FileDataObjectManager. so when I open up that it ends up being tiny.

    I have tried

    $projectImageGalleryUploadify->set_popup_width('800px'); and FileDataObjectManager::set_popup_width('1000px');

    plus a lot of hacks in the CSS but no luck, I'm thinking I'm going to have to get into the dataobjectmanager js for this one but am trying to avoid that so I don't run into redundancy issues when the next upgrade comes out.

    thanks for the time

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: How to set the height popup? Link to this post

    any thoughts about this?

    its a great great piece but becomes almost unusable it nested like I am describing as it is so small so can't get access to the whole section.

  • UncleCheese
    Avatar
    4085 Posts

    Re: How to set the height popup? Link to this post

    Well popups are an inherently restrictive UI, and you're simply trying to do far more with a nested DOM than it was ever intended to do. Until we move into a more extensible model (i.e. DataGrid), I would recommend moving this into ModelAdmin so you can have more real estate from the start. I really don't see it as a productive solution to just litter the CMS with stacks of enormous, gaudy popups.

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: How to set the height popup? Link to this post

    thanks for the reply. I guess I didn't look at like that. Your right modeladmin is more suitable, especially for text only.

    It still wouldn't be possible to sort a dataobject containing an image gallery in modeladmin though would it?

    1610 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.