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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1161 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(...)