And now you want to insert an image right? So if you're using the [url=http://documentation.magnolia-cms.com/reference/controls.html#dam]dam[/url] control in your corresponding dialog, the JSP code of your component have to look like this:
[code]<%@ taglib prefix="cmsfn" uri="http://magnolia-cms.com/taglib/templating-components/cmsfn" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:set var="imageLink" value="${cmsfn:linkForWorkspace(content.image,content.imageDmsUUID)}"/> <div style="background:url(${imageLink});"> ${cmsfn:decode(content).text} </div>[/code] (control name: "image") -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=d5a1106a-9329-41b9-8f79-ee136fd95d5b ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
