kentico_borisp
-
2/4/2010 8:04:45 AM
RE:Access first attachment from doc transformation
Hello,
I am not truly shure, what you are trying to accomplish. If you want to display an attachment of the document which you are displaying in a transformation you can use the following code:
<%# GetAttachmentUrl("NewsPhoto1.jpg","/News/Your-first-news") %> • Inserts URL of the attachment with name specified in the first parameter of the document with nodeAliasPath specified by the second one. This method returns the same URL as GetFileUrl, but needn't load the whole document, which results in better performance.
Currently it is not possible to attach images from the medial library.
Best regards, Boris Pocatko
|