Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » "Delete Image" problem from gallery popup

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1002 Views
  • dezmond
    Avatar
    Community Member
    17 Posts

    "Delete Image" problem from gallery popup Link to this post

    When i hover over an image in my gallery I get a little trashcan 'Delete' icon which allows me to delete the image from the gallery successfully.

    However, if I click on the image, a popup window appears where I can rotate the image, edit the caption, change the album and finally 'Replace' or 'Delete the image. If i click 'Delete' from here, once the popup window closes i am left with the broken image icon. I see that this is because the record is not being deleted from the 'ImageGalleryItem' table whereas using the first method (deleting via the trashcan icon), it does delete the record.

    Has anyone else had this problem? I'm more than happy to just remove the 'delete image' button from the popup if it's an easy solution.

    Thanks in advance.

  • UncleCheese
    Avatar
    4085 Posts

    Re: "Delete Image" problem from gallery popup Link to this post

    Two different things.. from the table view, you're deleting the entire item... it's caption, description, album id, etc, but from within the popup you're removing just the image that is attached to that record.

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

  • dezmond
    Avatar
    Community Member
    17 Posts

    Re: "Delete Image" problem from gallery popup Link to this post

    Ah that makes sense. Thanks for your reply. Though if that is the case then I may have spotted a minor bug. If you delete the image through the popup and return to the gallery, the image now displays the broken image icon. However, you can't delete this now using the trashcan icon - it doesn't do anything. So basically an image needs to be there in order to delete it using the icon.

    1002 Views
Page: 1
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.