Commit 8b090660 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Fix for loading images in items

parent 579cef18
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<a href="${frame.value}" data-vbtype="iframe" data-gall="item-image" class="venobox"> <a href="${frame.value}" data-vbtype="iframe" data-gall="item-image" class="venobox">
<c:choose> <c:choose>
<c:when test="${fn:length(images)>0}"> <c:when test="${fn:length(images)>0}">
<img class="item-image" style="opacity: 0.3" src="<s:url value="/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${images[0].value}&type=DISPLAY" />"> <img class="item-image" style="opacity: 0.3" src="<s:url value="/cachedimages/"/>${collection.id}/${endpointId}/${datamodel.id}?i=${images[0].value}&type=DISPLAY">
</c:when> </c:when>
<c:otherwise> <c:otherwise>
<img class="item-image" src="<s:url value="/theme/img/placeholder-logo.png" />"> <img class="item-image" src="<s:url value="/theme/img/placeholder-logo.png" />">
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
<div style="text-align: center;" class="preview-image-label">${idx+1} / ${fn:length(frames)+fn:length(images)}</div> <div style="text-align: center;" class="preview-image-label">${idx+1} / ${fn:length(frames)+fn:length(images)}</div>
<!-- <img src="<s:url value="/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY" />">--> <!-- <img src="<s:url value="/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY" />">-->
<a href="<s:url value="/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY" />" data-gall="item-image" class="venobox"> <a href="<s:url value="/cachedimages/"/>${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY" data-gall="item-image" class="venobox">
<img class="item-image" src="<s:url value="/cachedimages/${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY" />"> <img class="item-image" src="<s:url value="/cachedimages/"/>${collection.id}/${endpointId}/${datamodel.id}?i=${image.value}&type=DISPLAY">
</a> </a>
</div> </div>
<c:set var="idx" value="${idx+1}" /> <c:set var="idx" value="${idx+1}" />
......
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