Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Wider DataObjectManager Popup Iframe


Go to End


5 Posts   1306 Views

Avatar
DeklinKelly

Community Member, 197 Posts

26 July 2010 at 9:37pm

The Popup Iframe of the DataObjectManager is 500px wide. How can I make it 600px wide?

Avatar
Mad_Clog

Community Member, 78 Posts

26 July 2010 at 9:47pm

$oDataObjectManager->set_popup_width(600);

Avatar
DeklinKelly

Community Member, 197 Posts

26 July 2010 at 10:01pm

Perfect, thanks!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

27 July 2010 at 1:37am

I think it's "setPopupWidth()", no?

Avatar
Mad_Clog

Community Member, 78 Posts

27 July 2010 at 1:52am

You're right UC.

using set_pop_width changes the static value of the class
whereas setPopupWidth changes it for a single instance of the class

So if you want all popups to have an alternate width use DataObjectManager::set_popup_width(...) in your config
If you want to change the width of a single popup use $oDataObjectManager->setPopupWidth(...)