Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Bug Reports

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
Go to End
Author Topic: 44495 Views
  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Bug Reports Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

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

  • Howard
    Avatar
    Community Member
    215 Posts

    Re: Bug Reports Link to this post

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

  • wmk
    Avatar
    Community Member
    44 Posts

    Re: Bug Reports Link to this post

    Hi Uncle Cheese,

    two patches will make DOM work together with translatable.

    One i found yesterday http://open.silverstripe.org/ticket/4435 and one i made today http://open.silverstripe.org/ticket/4492.

    HTH (and thanks for your cool work btw)

    WMK

  • theAlien
    Avatar
    Community Member
    131 Posts

    Re: Bug Reports Link to this post

    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:
    http://pastie.org/584977 (the dataobject)
    http://pastie.org/584978 (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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

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

    http://www.silverstripe.org/dataobjectmanager-module-forum/show/265720#post265720

    If so, you are a hero to many users!

  • wmk
    Avatar
    Community Member
    44 Posts

    Re: Bug Reports Link to this post

    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

    hth

  • UncleCheese
    Avatar
    4085 Posts

    Re: Bug Reports Link to this post

    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?

    44495 Views
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
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.