Added aggregations support to search results portlets
authorThierry Florac <tflorac@ulthar.net>
Mon, 11 Jan 2021 17:10:01 +0100
changeset 539 efc6f1991693
parent 538 e26e86b564b1
child 540 adf096fcbe10
Added aggregations support to search results portlets
src/pyams_default_theme/features/search/portlet/templates/search-panels.pt
src/pyams_default_theme/features/search/portlet/templates/search-results.pt
--- a/src/pyams_default_theme/features/search/portlet/templates/search-panels.pt	Tue Dec 01 09:20:22 2020 +0100
+++ b/src/pyams_default_theme/features/search/portlet/templates/search-panels.pt	Mon Jan 11 17:10:01 2021 +0100
@@ -21,7 +21,7 @@
 		<input type="hidden" name="length" value="${length}" />
 	</form>
 	<div class="search-results"
-		 tal:define="(items, count) settings.get_items(request, start, length)">
+		 tal:define="(items, count, aggregations) settings.get_items(request, start, length)">
 		<header>
 			<div tal:condition="renderer_settings.display_results_count">
 				<tal:if condition="count" i18n:translate="">
--- a/src/pyams_default_theme/features/search/portlet/templates/search-results.pt	Tue Dec 01 09:20:22 2020 +0100
+++ b/src/pyams_default_theme/features/search/portlet/templates/search-results.pt	Mon Jan 11 17:10:01 2021 +0100
@@ -21,7 +21,7 @@
 		<input type="hidden" name="length" value="${length}" />
 	</form>
 	<div class="search-results"
-		 tal:define="(items, count) settings.get_items(request, start, length)">
+		 tal:define="(items, count, aggregations) settings.get_items(request, start, length)">
 		<header>
 			<div tal:condition="renderer_settings.display_results_count">
 				<tal:if condition="count" i18n:translate="">