Updated preview template
authorThierry Florac <tflorac@ulthar.net>
Wed, 28 Nov 2018 09:41:40 +0100
changeset 1136 34c2f50177d9
parent 1135 af500b35394c
child 1137 b8068bb58b9e
Updated preview template
src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt
--- a/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Wed Nov 28 09:41:16 2018 +0100
+++ b/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Wed Nov 28 09:41:40 2018 +0100
@@ -12,10 +12,10 @@
 		</tal:loop>
 	</div>
 	<div>
-		<span i18n:translate="">Extracted contents:</span>
+		<span i18n:translate="">Extracted contents (limited to 10):</span>
 		<tal:if condition="not:settings.views" i18n:translate="">none (no selected view)</tal:if>
 		<ul>
-			<li tal:repeat="item settings.get_items(request, ignore_cache=True)">
+			<li tal:repeat="item settings.get_items(request, limit=10, ignore_cache=True)">
 				<span>${i18n:item.title}</span>
 				<span>(${tales:oid(item)})</span>
 				<tal:var define="global count count+1" />