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

I can't move my assets now?


Go to End
Reply

24 Posts   3721 Views

Avatar
alirobe

13 July 2009 at 8:34pm (Last edited: 13 July 2009 8:35pm), Community Member, 35 Posts

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.

Avatar
UncleCheese

14 July 2009 at 1:02am 4085 Posts

Edit your dataobject_manager _config.php:

DataObjectManager::allow_assets_override(false);

Avatar
alirobe

14 July 2009 at 2:27am Community Member, 35 Posts

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

Avatar
pbolger

15 July 2009 at 10:55am Community Member, 22 Posts

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

Avatar
UncleCheese

15 July 2009 at 12:20pm 4085 Posts

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.

Avatar
pbolger

15 July 2009 at 3:10pm Community Member, 22 Posts

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.

Avatar
UncleCheese

16 July 2009 at 1:54am 4085 Posts

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.

Avatar
pbolger

16 July 2009 at 9:23am Community Member, 22 Posts

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.

Go to Top