Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » ImageDataObjectManager - unable to add existing image

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: 619 Views
  • pingu
    Community Member
    75 Posts

    ImageDataObjectManager - unable to add existing image Link to this post

    Hi guys,

    I have the following setup:

    - A ContentPage has_many ContentImage
    - A ContentImage has_one ContentPage

    I'm using IDOM to manage the images, which works fine when I upload new images. However, when I try to add an image which I've already added using the "Files and Images" tab, it won't work.

    Here's what I do:

    - Upload a new image using "Files and Images". This image isn't linked to a ContentPage yet
    - Go to my content page, and try to attach the image using IDOM -> Add file -> Choose Existing
    - I select the folder, it shows all the images in that folder
    - I check the checkbox next to the image I've just uploaded and click "Import"
    - Uploadify says 'added files successfully' (Ajax Response 1 below)
    - I click continue, the spinning wheel appears but no images display or are attached to the page, no errors in the ajax response, just the HTML to render the image table.

    The ajax response doesn't show any errors. I would really appreciate some help with this.

    Ajax Response 1:

    ImportFiles[]   168
    SecurityID   fd2a74907161ada2f327b9447766beed7a6c3261
    UploadFolderID_ImageDataO...   1
    UploadedFiles[]   168
    action_saveUploadifyForm   Continue

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.