Details
-
Bug
-
Resolution: Fixed
-
Minor
-
2.01
-
None
-
AIX
Description
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())
%>
I don't know if it is still broken in the current code base.