Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » OMG NEW STUFF!

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3 4
Go to End
Author Topic: 2245 Views
  • mattclegg
    Avatar
    Community Member
    56 Posts

    Re: OMG NEW STUFF! Link to this post

    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)

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    You can use setWideMode() for that, no?

  • mattclegg
    Avatar
    Community Member
    56 Posts

    Re: OMG NEW STUFF! Link to this post

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

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

    DataObjectManager::set_wide_mode(true);

    overridden by the instance-level:

    $myDOM->setWideMode(false);

    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.

  • mattclegg
    Avatar
    Community Member
    56 Posts

    Re: OMG NEW STUFF! Link to this post

    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..

  • Stefdv
    Avatar
    Community Member
    110 Posts

    Re: OMG NEW STUFF! Link to this post

    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 http://www.silverstripe.org/customising-the-cms/show/254721?start=0#post276300)

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    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.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: OMG NEW STUFF! Link to this post

    Hi UncleCheese

    I just grabbed DOM Rev. 355 from SVN and apparently this bug is still open:
    http://silverstripe.org/dataobjectmanager-module-forum/show/260986?start=128#post277576

    Since you weren't able to replicate the problem, here's a test-case for you:
    http://bummzack.ch/misc/DOM-Testcase.zip

    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

    2245 Views
Page: 1 2 3 4
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.