Dear Dominik
A simple way to get the path for an image from DAM is using
DamTemplatingFunctions.
[code][#-- ... snippet ... --]
[#assign imgRef = content.assetRef!]
[#if imgRef?has_content && damfn.getAssetLink(imgRef, "zoom")?has_content]
<div>
<img src="${damfn.getAssetLink(imgRef, "zoom")}"/>
</div>
[/#if]
[#-- ... EOF: snippet ... --][/code]
This ftl snippet assumes, that you are using a dialog with a field "assetRef"
with property
class="info.magnolia.ui.form.field.definition.LinkFieldDefinition" and in this
case you also should use identifierToPathConverter with
class="info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator"
=> see http://i.imgur.com/0qEZEz7.png for the complete dialog of this "example"
"zoom" is just en example for one possible rendition.
You probably also want to have a look at:
http://documentation.magnolia-cms.com/display/DOCS/DAM+and+the+STK which
explains some more details.
I hope this helps.
Kind regards,
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=677ad06d-0c12-4d12-baa8-5f0547bbcf57
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------