Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » I can't move my assets now?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2 3
Go to End
Author Topic: 3626 Views
  • alirobe
    Avatar
    Community Member
    35 Posts

    I can't move my assets now? Link to this post

    I used to be able to move all my assets around (drag and drop them to different folders) and SilverStripe would handle changing all the links. Now the 'Files & Assets' tab area has been replaced with DOM, and the 'drag' bit only appears on the unused files tab (and it doesn't even work there - that tab appears to be thoroughly stuffed).

    What gives? I didn't want DOM to be used for Files & Images tab anyway - I just wanted to use it in ModelAdmin.

  • UncleCheese
    Avatar
    4085 Posts

    Re: I can't move my assets now? Link to this post

    Edit your dataobject_manager _config.php:

    DataObjectManager::allow_assets_override(false);

  • alirobe
    Avatar
    Community Member
    35 Posts

    Re: I can't move my assets now? Link to this post

    Apologies for the stupid question - I should have guessed it'd be in the config. Thanks for the quick response.

  • pbolger
    Avatar
    Community Member
    22 Posts

    Re: I can't move my assets now? Link to this post

    That works. Stupid question from me this time: why would you want to not be able to move assets?

  • UncleCheese
    Avatar
    4085 Posts

    Re: I can't move my assets now? Link to this post

    I wasn't aware that the feature existed until someone mentioned it. I like to think that shortcoming is cancelled out by the bulk uploading feature and the interface that doesn't look like a relic of Windows 98.

    But it's a work in progress, and that's why I've made it a toggleable feature.

  • pbolger
    Avatar
    Community Member
    22 Posts

    Re: I can't move my assets now? Link to this post

    It sounds like a kind of 'would you prefer steering or brakes?' kind of choice...

    Not sure if I get it though: the bulk file upload still seems to work. A 'checkbox' delete for the image gallery objects (the image plus the caption) would be handy - I've got 52 images in one album, and having to delete them one at a time is a bore.

  • UncleCheese
    Avatar
    4085 Posts

    Re: I can't move my assets now? Link to this post

    Well, steering and brakes is a little extreme. I use both of those every day. But of the 24 active Silverstripe sites I have, none of them have ever used the move files feature, and again, it's the first I've heard of it. On the other hand, there is no shortage of clients who continually ring my phone about the archaic 200-click process of setting up an upload queue in AssetAdmin. So it's more of a "squeaky wheel getting the grease" type of situation -- to continue with the automotive metaphors.

    I do intend to keep upgrading it, however, and I hope I'm able to accommodate the move files feature. In the meantime, users who miss that feature can turn off the override. For now, I'm happy to have given clients a more competitive uploading interface that saves them a lot of time.

    I like the idea for multiple deletes. The problem with adding that feature to DOM so far has been the conflict of checkboxes in RelationDataObjectManager. What does clicking a checkbox do? Assign a relation or queue it for delete? Or do you have two checkboxes? Confusing!

    But in the AssetManager, there is no question of relation, so I could pretty easily add that in.

  • pbolger
    Avatar
    Community Member
    22 Posts

    Re: I can't move my assets now? Link to this post

    Actually, thinking about this more, I think that I'm asking for the wrong thing here: what I really need is the ability to move 'pictures' from album to album rather than the 'image' objects.

    For the benefit of anyone else trying to get to grips with this here's a quick rundown of how the Image Gallery structure seems to work. (feel free to correct me if I'm wrong)

    Gallery (the parent pagetype ) title, html field - contains Albums
    Album > title - contains Pictures
    Picture > caption (plain text) - contains 1 Image
    Image > title - contains 1 binary image file

    Now, what seems to be missing from my POV is the ability to organise Pictures within Albums.

    Of course, if you had a 'move Picture' function you could have a 'Trash' Album, which could take care of deleting, at least at that level.

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