Commit 9f6eb19a authored by Bert Leunis's avatar Bert Leunis

ESSENTIALS-1033 change markup of image templates so the result is always a single dom element

parent bab8cacb
......@@ -2,15 +2,17 @@
<#-- @ftlvariable name="document" type="org.hippoecm.hst.content.beans.standard.HippoGalleryImageSetBean" -->
<#if document??>
<figure>
<@hst.link var="img" hippobean=document.original/>
<img src="${img}" title="${document.fileName?html}" alt="${document.fileName?html}"/>
<#if document.description??>
<figcaption>${document.description?html}</figcaption>
</#if>
</figure>
<figure>
<@hst.link var="img" hippobean=document.original/>
<img src="${img}" title="${document.fileName?html}" alt="${document.fileName?html}"/>
<#if document.description??>
<figcaption>${document.description?html}</figcaption>
</#if>
</figure>
<#-- @ftlvariable name="editMode" type="java.lang.Boolean"-->
<#elseif editMode>
<div>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/image.png" />"> Click to edit Image
</div>
</#if>
......@@ -2,10 +2,12 @@
<#-- @ftlvariable name="document" type="org.hippoecm.hst.content.beans.standard.HippoGalleryImageSetBean" -->
<#if document??>
<@hst.link var="img" hippobean=document.original/>
<img src="${img}" title="${document.fileName?html}" alt="${document.fileName?html}"/>
<@hst.link var="img" hippobean=document.original/>
<img src="${img}" title="${document.fileName?html}" alt="${document.fileName?html}"/>
<#-- @ftlvariable name="editMode" type="java.lang.Boolean"-->
<#elseif editMode>
<div>
<img src="<@hst.link path="/images/essentials/catalog-component-icons/image.png" />"> Click to edit Image
</div>
</#if>
<%@ include file="/WEB-INF/jsp/include/imports.jsp" %>
<%--@elvariable id="document" type="org.hippoecm.hst.content.beans.standard.HippoGalleryImageSetBean"--%>
<hst:link var="img" hippobean="${requestScope.document.original}"/>
<img src="${img}" title="${fn:escapeXml(requestScope.document.fileName)}" alt="${fn:escapeXml(requestScope.document.fileName)}"/>
<c:if test="${requestScope.document ne null}">
<hst:link var="img" hippobean="${requestScope.document.original}"/>
<img src="${img}" title="${fn:escapeXml(requestScope.document.fileName)}" alt="${fn:escapeXml(requestScope.document.fileName)}"/>
</c:if>
<%--@elvariable id="editMode" type="java.lang.Boolean"--%>
<c:if test="${requestScope.editMode && (requestScope.document eq null)}">
<img src="<hst:link path='/images/essentials/catalog-component-icons/image.png'/>"> Click to edit Image
<div>
<img src="<hst:link path='/images/essentials/catalog-component-icons/image.png'/>"> Click to edit Image
</div>
</c:if>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment