Hi Nickolaus

Normally you should have directly access to your current content from your JSP 
context. 
Code snipped extracted from the magnolia-templating-samples module
 
<title>
    <c:choose>
      <c:when test="${not empty content.title}">
        ${content.title}
      </c:when>
      <c:otherwise>
        ${content['@name']}
      </c:otherwise>
    </c:choose>
</title>

In addition Magnolia provide templating JSP support that expose some useful 
taglib like cmsfn (in this example, create a link) . 

<%@ taglib prefix="cmsfn" 
uri="http://magnolia-cms.com/taglib/templating-components/cmsfn"%>
<c:when test="${not empty content.image}">
      Image: <img src="${cmsfn:link(content.image)}" />
</c:when>

I recommend you to have a look at the magnolia-templating-samples. You will 
found some useful example (JSP sources are located under 
src/main/resources/mgnl-files/templates/samples).

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=03ec62eb-8378-4fe8-a74e-fc252ebcdbc5


----------------------------------------------------------------
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]>
----------------------------------------------------------------

Reply via email to