Hi Adrien, How about something like:
[#if (content.image!"") =="dms" && content.imageDmsUUID?has_content] ... [/#if] Regards from Vienna, Richard -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von adrien beber (via Magnolia Forums) Gesendet: Dienstag, 22. Jänner 2013 12:05 An: Magnolia User List Betreff: [magnolia-user] DAM control: how to check if link present for dms OR file present for upload I have a dialog where I have an image to upload/choose from repo. The controlType is dam. All works fine, except when a user ticks a radio button but do not actually upload a file NOR choose an image from the repo (internal link). In that case, I get a freemarker exception when calling [code]stkfn.getAsset(item, "image")[/code]. An obvious solution would be to check that the user actually uploaded an image OR chose an image from the repo. And insert this check before calling the method (mentioned above). I have been looking around and tried a few things (see links below) but can't get this sorted. Any help is welcome, thanks in advance. http://nexus.magnolia-cms.com/content/sites/magnolia.public.sites/modules/standard-templating-kit-parent/2.0.1/standard-templating-kit-parent/apidocs/info/magnolia/module/templatingkit/dam/dialog/DialogDAM.html#setName(java.lang.String) -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=031616df-1f91-4512-95ec-8a5e237ad1f5 ---------------------------------------------------------------- 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]> ---------------------------------------------------------------- ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
