Hello Lennart Agree, we don't have yet a consolidate documentation... but I can point you to some solutions (Currently used in STK)
Definition of the link field (named in this example image): image - identifierToPathConverter - class : info.magnolia.dam.app.assets.field.translator.AssetCompositeIdKeyTranslator - contentPreviewDefinition - contentPreviewClass : info.magnolia.dam.asset.field.DamFilePreviewComponent - class : info.magnolia.ui.form.field.definition.LinkFieldDefinition - appName : assets This will store a asset composite id under the image property image: jcr:assetNodeIdentifier Now to display this image using FTL code referring to the following documentation http://wiki.magnolia-cms.com/display/DEV/Dam+API+documentation and more specifically to: http://wiki.magnolia-cms.com/display/DEV/Dam+API+documentation#DamAPIdocumentation-DamUtilityClass and http://wiki.magnolia-cms.com/display/DEV/Dam+API+documentation#DamAPIdocumentation-InteractionwithSTK in your FTL if you want to have a direct access to the image you only need to use the following dam function: [#assign assetMap = damfn.getAssetMapForAssetId(content.link)] [#assign asset = damfn.getAssetForId(content.link)] Let me know if this is helpful for you. -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=c4da9207-13ea-4d93-9d6d-f310be7e1630 ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
