Hi,
I'm currently experiencing an issue with a document type that can have attachments added to it via a File attribute.
This document is then exposed via a repeater and a transform. Everything was working perfectly until we turned on Workflows to enable previewing/publishing of content.
Now, if a new document of this type is created, an attachment added and the document is previewed an error is rendered by the repeater control because it can't find the attachment when the transform is applied:
This is the transformation used:
It appears that when you upload the attachment as you create the document, it is placed in the CMS_Attachment table fine. Upon clicking 'Save' it's moved to 'CMS_AttachmentHistory' and deleted from 'CMS_Attachment' and only moved back when you click 'Publish'.
I'm just wondering if there are any changes that can be made to the configuration to prevent this behavior or can I change the transformation so that it can access the attachment in 'CMS_AttachmentHistory' should it not be found in 'CMS_Attachment'?
Many thanks.