Importing changes to an entry with a child colleciton.
  • I'm attempting to update a large collection, which has an image gallery child collection. Specifically, I'm trying to update a textfield in the child collection. Here is the xml schema which vae exports, and I'm trying to follow.


    <shop_items>
    <inventory_number match="true">AB/988_CLONG01</inventory_number>
    <image_gallery permalink="" id="618672">
    <image>http://gagosian.vaeplatform.com/data/c4c9120408726e06e8ea2165c3b5ef8a8f76f71f.jpg</image>
    <caption>""</caption>
    </image_gallery>
    <image_gallery permalink="" id="618673">
    <image>http://gagosian.vaeplatform.com/data/3c11a0180ab25f87a4e3fdc5084a9f3525c0d79f.jpg</image>
    <caption>""</caption>
    </image_gallery>
    </shop_items>


    Please note that I've additionally attempted to set image_gallery and image as match columns, and different combinations of the above, to no avail. The ultimate goal is to update the caption fields. I could actually easily repair the captions problem in a text editor with find and replace, but everytime I attempt to export the collection from Vae I get the white screen timeout again :(

  • 9 Answers sorted by
  • Update: I have also tried to import updates to the image_gallery collections outside of their parent object, and that hasn't worked either.

  • Can you do a full export via the DNS trick I showed you earlier?

  • Nope, I still get a white screen and no file

  • ok, going back to your original import ... do you have that wrapped in a block that starts with <website><content> like this:

    <website>
    <content>
    <shop_items>
    ... etc.
    </shop_items>
    </content>
    </website>


    That would be necessary. But the rest looks right.

  • Yes, we do have that. I can send you the entire file if you like

  • Yea, send it!

  • For those interested, the solution provided by Kevin was:


    <image_gallery>
    <image>imageurl</image>
    <caption match="true">old caption</caption>
    <caption >new caption</caption>
    </image_gallery>


    The trick was to match the old field and then replace it with a new one right below it in the import file.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

In this Discussion