Thanks a million, just restarting to use Magnolia & you saved my computer from
a jump from the 6th floor :)
Going through the JCR Browser was really easy. Thanks for the tip, will use it
again I'm sure.
Here is the NullPointerException proof code to display data coming from the DAM
controlType then:
[code][#if item?has_content && item.image?has_content && ((item.image=="upload"
&& item.imageBinary?has_content) || (item.image=="dms" &&
item.imageDmsUUID?has_content))]
...do your stuff
[/#if][/code]
The way I implemented it, could probably be improved:
[code][#if item?has_content && item.image?has_content && ((item.image=="upload"
&& item.imageBinary?has_content) || (item.image=="dms" &&
item.imageDmsUUID?has_content))]
[#assign imageLink = stkfn.getAssetVariation(stkfn.getAsset(item,
"image"), "itemlist").getLink()!""]
[#if imageLink?has_content]
<img class="itemImg" src="${imageLink!}" alt="${item.name!}" />
[#else]
<div class="itemImg dummyImg"></div>
[/#if]
[#else]
<div class="itemImg dummyImg"></div>
[/#if][/code]
--
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]>
----------------------------------------------------------------