[
http://jira.magnolia-cms.com/browse/MAGNOLIA-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Haderka updated MAGNOLIA-365:
---------------------------------
Fix Version/s: 2.1.5
> ifNotEmpty doesn't work for jpegs
> ---------------------------------
>
> Key: MAGNOLIA-365
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-365
> Project: Magnolia
> Issue Type: Bug
> Security Level: Public
> Components: samples, taglibs
> Affects Versions: 2.01
> Environment: AIX
> Reporter: Boris Kraft
> Assignee: Philipp Bärfuss
> Priority: Minor
> Fix For: 2.1.5
>
>
> The following code snippet does work fine for gifs, but does not for jpegs.
> --- 8< ---
> <%@ taglib uri="cms-taglib" prefix="cms" %>
> <%@ taglib uri="cms-util-taglib" prefix="cmsu" %>
> <cms:ifNotEmpty nodeDataName="image">
> <img src="<cmsu:fileSrc nodeDataName="image"/>">
> </cms:ifNotEmpty>
> --- 8< ---
> I have the following workaround:
> <%@ page import="info.magnolia.cms.core.ContentNode,
> info.magnolia.cms.util.Resource,
> info.magnolia.cms.gui.misc.FileProperties"%>
> <%@ taglib uri="cms-taglib" prefix="cms" %>
> <%@ taglib uri="cms-util-taglib" prefix="cmsu" %>
> <%
> ContentNode activePage = Resource.getLocalContentNode(request);
> if (activePage.getNodeData("image").isExist()) {
> %>
> <img src="<cms:out nodeDataName="image"/>" alt="<cms:out
> nodeDataName="imageAlt"/>">
> <%
> }
> %>
> I don't know if it is still broken in the current code base.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
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]>
----------------------------------------------------------------