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: 2240 Views
  • mattclegg
    Avatar
    Community Member
    56 Posts

    Re: OMG NEW STUFF! Link to this post

    Hey Uncle Cheese, Can I write here about the amends I made to DOM?

    facebox to use most of the screen (making it slightly more pleasing to the eye)
    submit button handles better multipul uploads (instead of a hugh string for each item)

    Iv attached my amends to the r343 -hope somebody finds this useful.
    http://urcms.net/dataobject_manager.zip

    Also can I ask what is needed to be done for many images per object? ie something like;

    static $has_many = array (
    'gallery' => 'Image'
    );

    Thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    You can use a nested ImageDataObjectManager to handle multiple images per object. What do you mean by "submit button handles better multipul uploads (instead of a hugh string for each item)"?

  • mattclegg
    Avatar
    Community Member
    56 Posts

    Re: OMG NEW STUFF! Link to this post

    My submit button had the title;
    "Save and add Main Image, Line Art Image1, Line Art Image2, Line Art Image3, Line Art Image4, Line Art Image5, Line Art Image6, Cadfile, Sibdata, Image Gallery 1, Image Gallery 2, Image Gallery 3, Image Gallery 4, Image Gallery 5, and Image Gallery 6"

    -which used to create a huge button and scroll bars.

    So using the update it will now be;
    "Save and add Main Image, Line Art Image1, and Line Art Image2 And 12 other(s)."

    Hopefully this makes sense

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    Lol... Definitely did not anticipate that. I'll make that update.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: OMG NEW STUFF! Link to this post

    Hey UncleCheese

    While you're updating stuff, here's another patch for you:
    http://silverstripe.org/dataobjectmanager-module-forum/show/260986?start=128#post277576

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    Yup. I saw that yesterday. It's checked in, I think.

  • UncleCheese
    Avatar
    4085 Posts

    Re: OMG NEW STUFF! Link to this post

    Actually, Banal, I'm having a hard time with this one. In my rev of DOM, I believe I have correct markup.

    After the closing div for "per-page-control", there should be three closing divs, followed by $ExtraData.

    <div class="per-page-control">
    <% if ShowAll %>
    <% else %>
    $PerPageDropdown
    <% end_if %>
    </div>
    </div>
    </div>
    </div>
    $ExtraData
    </div>

    is that what you have? Also, are you seeing the issue in RelationFileDataObjectManager?

  • banal
    Avatar
    Community Member
    901 Posts

    Re: OMG NEW STUFF! Link to this post

    Hi UncleCheese

    I got rev. 347 here.
    The problem is in RelationDataObjectManager.ss at the end of the file (near: <div class="bottom-controls">) there seems to be a div missing. Which in turn messes up all following SilverStripe Tabs.

    Since this is in RelationDataObjectManager, it only applies to the managers that are using this template.

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