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.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

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



28 Posts   2324 Views


28 January 2010 at 5:24am (Last edited: 28 January 2010 5:25am), Community Member, 56 Posts

Re: hasNested

Line 43 (dataobject_manager.js) should be
w = $(this).attr('rel') == 'duplicate' ? (($(window).width() / 6)*2) : (($(window).width() / 3)*2);

making a big box -regardless of if nested & creating a bigger box for duplicated windows (I think this might need changing somewhere else also)


28 January 2010 at 5:41am 4085 Posts

You can use setWideMode() for that, no?


28 January 2010 at 6:15am (Last edited: 28 January 2010 6:15am), Community Member, 56 Posts

but I always want a big box -unless its in a box


28 January 2010 at 6:36am 4085 Posts

Seems like we could add a global setting for DOM to use wide mode, then, using a static property..


overridden by the instance-level:


But I don't see a reason to make changes to the JS, however, because then you're insulated from the DOM configuration, and I'd like to leave users with the highest level of control -- not stuck with what one user prefers.


28 January 2010 at 6:52am Community Member, 56 Posts

yeah, sounds good. Id only changed it from a static value in the first place to give the user the most their screen could handle..


28 January 2010 at 7:13am Community Member, 110 Posts

UncleCheese, you nailed it.

This is exactly what i was looking for, i'm refering to the sortable_many_many_relation. I've been strugling with this issue for ages.
(See my post

I downgraded to version 2.3.3. to use it and my only question now is...are you planning on making the module compatible with further versions of SS??

Well anyway thank you so much.


28 January 2010 at 7:32am 4085 Posts

It will be good to go for the 2.4 release. There's a link to a ticket somewhere in this thread. It got resolved yesterday.


1 February 2010 at 9:16pm Community Member, 901 Posts

Hi UncleCheese

I just grabbed DOM Rev. 355 from SVN and apparently this bug is still open:

Since you weren't able to replicate the problem, here's a test-case for you:

The Archive contains 2 Files: DummyPage.php and ManyDummy.php. The DummyPage has a many_many relation to ManyDummy and uses ManyManyDataObjectManager to manage them.

Steps to reproduce the bug:
- copy DummyPage.php and MainDummy.php to mysite/code
- run /dev/build
- Login to the CMS and create a new DummyPage
- All tabs that come after the Tab that contains the DOM will be empty. Even the CMS Tabs like "Behavior", "ToDo" etc. will be empty. Unless you're using some browser that fixes invalid markup that is :)