Include OID in view's items preview
authorThierry Florac <thierry.florac@onf.fr>
Fri, 16 Nov 2018 11:54:55 +0100
changeset 1098 dc8d006e048f
parent 1097 a0473ba5f96f
child 1099 74277fdf437e
Include OID in view's items preview
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	Fri Nov 16 11:22:33 2018 +0100
+++ b/src/pyams_content/shared/view/portlet/zmi/templates/view-items-list-preview.pt	Fri Nov 16 11:54:55 2018 +0100
@@ -16,7 +16,8 @@
 		<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)">
-				<tal:var content="i18n:item.title" />
+				<span>${i18n:item.title}</span>
+				<span>(${tales:oid(item)})</span>
 				<tal:var define="global count count+1" />
 			</li>
 			<span tal:condition="not:count" i18n:translate="">No result found</span>