[quote]Hi I am using the following code to create a TextImage compononet using 
jsp. However the image is not getting shown in the screen. I am using 
SpringBlossom framework.

<%@ taglib prefix="cmsfn" 
uri="http://magnolia-cms.com/taglib/templating-components/cmsfn"; %>
<%--@elvariable id="content" type="info.magnolia.jcr.util.ContentMap"--%>
<%--@elvariable id="damfn" 
type="info.magnolia.dam.templating.functions.DamTemplatingFunctions"--%>

<h1>${content.heading}</h1>

<c:if test="${not empty content.photo}">
    <%-- Using JSP 2.2 method calling from EL - requires Servlet 3.0 (Tomcat 
7) --%>
    <%-- On previous versions this exception is thrown: The function 
getAssetLink must be used with a prefix when a default namespace is not 
specified --%>
    <img style="float: right;margin: 10px;" 
src="${damfn.getAssetLink(content.image)}"/>
</c:if>

<p>${cmsfn:decode(content).body}</p>[/quote]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=5f239f56-fd3b-4dd8-ac00-fb59b4aa2f1c


----------------------------------------------------------------
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: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to