This is an automated email from the ASF dual-hosted git repository.
dklco pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-app-cms.git
The following commit(s) were added to refs/heads/master by this push:
new 866705b Implementing SLING-9156 - adding a thumbnail for search
results
866705b is described below
commit 866705bb364ffa6897c5f17184afae9ef7434820
Author: Dan Klco <[email protected]>
AuthorDate: Wed Feb 26 09:12:12 2020 -0500
Implementing SLING-9156 - adding a thumbnail for search results
---
.../libs/sling-cms/components/cms/searchresults/searchresults.jsp | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/searchresults/searchresults.jsp
b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/searchresults/searchresults.jsp
index f7fd6db..5a6693c 100644
---
a/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/searchresults/searchresults.jsp
+++
b/ui/src/main/resources/jcr_root/libs/sling-cms/components/cms/searchresults/searchresults.jsp
@@ -49,6 +49,9 @@
<c:set var="icon" value="sitemap" />
</c:otherwise>
</c:choose>
+ <c:if test="${icon == 'file'}">
+ <img
src="${result.path}.transform/sling-cms-thumbnail.png"
alt="${sling:encode(title,'HTML_ATTR')}" />
+ </c:if>
<h5 title="${sling:encode(title,'HTML_ATTR')}">
<span class="jam
jam-${icon}"></span> ${sling:encode(title,'HTML')}
</h5>