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, Ed, biapar, Willr, Ingo, swaiba

Bug Reports

Go to End

297 Posts   68335 Views


Community Member, 215 Posts

13 August 2009 at 11:20pm

Hi UncleCheese,

I am using the ManyManyDataobjectManager- going well except one small bug. The TreeDropdownField doesn't work in the popup, if I switch to ManyManyComplexTableField then it works. I had a look and they have just added some new js requirements into those form fields /sapphire/forms/TreeDropdownField.php and /sapphire/forms/TreeSelectorField.php
They have added:

		Requirements::javascript(THIRDPARTY_DIR . "/prototype.js");
		Requirements::javascript(THIRDPARTY_DIR . "/behaviour.js");
		Requirements::javascript(THIRDPARTY_DIR . "/prototype_improvements.js");

to both so I imagine it's now conflicting with something of yours.

Thanks again


Forum Moderator, 4102 Posts

14 August 2009 at 12:27am

TreeDropdownField AFAIK, has never worked in any popups. That's what SimpleTreeDropdownField is for.


Community Member, 215 Posts

14 August 2009 at 8:29am

Oh right - random that it did work in the other popup then. No worries, the simple one does the job :) Thanks


Community Member, 86 Posts

15 August 2009 at 9:06pm

Hi Uncle Cheese,

two patches will make DOM work together with translatable.

One i found yesterday and one i made today

HTH (and thanks for your cool work btw)



Community Member, 131 Posts

16 August 2009 at 2:20am

To limit the amount of scrolling in the DOM-Popups and make the layout a bit more clear, I'm using tabs on them (never thought it would be possible, but it was :) ).
However, these tabs make all HTMLEditorFields (SimpleHTMLEditorField, SimpleWysiwygField and SimpleTinyMCEField) break, so I have to fall back to the good old textareafield (which isn't userfriendly at all).

Code-examples: (the dataobject) (the page)

In case of SimpleHTMLEditorField (the one I like most), the field disappears completely.
In case of SimpleTinyMCEField (the one I like second) and SimpleWysiwygField, the field has the appearance of a plain ol' TextareaField.


Forum Moderator, 4102 Posts

19 August 2009 at 5:33am

WMK, can you confirm that Translatable patch for DOM will fix this bug?

If so, you are a hero to many users! :)


Community Member, 86 Posts

19 August 2009 at 7:01pm

Hi Uncle Cheese,

well, this patch fixes at least the "I can't handle sub-URLs of a CMSMain object." problem when having translatable enabled.

Haven't used Gallery stuff yet...

At my current project i have set cms translatable, but the dataobject is not. (well, it has a seperate locale column which is filtered when generating the DOM)

I ended with something like

        $landingPageBlocksTable = new ManyManyDataObjectManager(
            $this, //Controller
            PageBlocks', //Feldname
            'PageBlock', // DO-Klasse
            array('Thumbnail' => 'Bild', 'Title' => 'Titel','DateStart' => 'Start','DateEnd'=>'Ende', 'isDefault'=>'Standard'), // Felder für Übersicht
            null, // Felder für Popup
            "Loc = '" . Translatable::get_current_locale() ."'"//Filter

but removing the "Loc = ..." Filter makes me see all dataobjects in every language and i can work with them without errors.

Maybe ATM translating an image gallery is better with adding seperate title / description fields to the image gallery dataobject than using translatable on the dataobject. Or you need a "copy all images to current language" function, cause you have to add every image to every language... just my 2c



Forum Moderator, 4102 Posts

20 August 2009 at 1:17am

Thanks, wmk,

Would you mind chiming in on the thread I posted? That user is having a very hard time getting things to work, and I just don't understand how Translatable works or what it's supposed to do at this point because I never have to use it as an ignorant English speaker.

I'm wondering if you might be able to look at the issues he's having and at least shed some light?