I'm trying to create and use image assets via the SOAP service, but have run into a dead end.
I can create the image assets easily, but how can I then add them to a page?
I thought I could create a bodycopy_div and then set its 'attributes' attribute to include content_type = content_type_image. If you do this, the attributes are set ok, but the actual content div is still content_type_wysiwyg.
So I tried creating the content div itself under an existing bodycopy_div. This looks like it works. The content div says that its content_type_image, but if you try to edit the contents in the gui you don't get the normal image dialogue, so something's not right.
Even if I could get this to work I don't know how to attach a particular image asset. I'm guessing I could create a link between the bodycopy_div and the image asset.
Am I missing something obvious? Is there another way to do this?
Thanks, Tim
In my opinion(probably implementer has better approach), you can just use an asset listing page to list the images in pre-defined format. Isn't that easier?
Otherwise, you have to find a way to embed the image code into the page content.
As Edison mentioned, there are two typical ways (of course there are others, but these are used quite often) that images can be listed on a page:
[list=1]
[*]Create an image asset under the Page and use an Asset Listing (via a Paint Layout) to list it
The second approach is the one that I usually choose due to it's simplicity for authors. In your case, especially since you're programatically creating assets, the second approach would also make sense since you don't have to do any additional work in setting it as a "Thumbnail".
Hope this makes sense, let me know if I should elaborate on anything.