1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 lang="en"
6 metal:use-macro="context/main_template/macros/master"
7 i18n:domain="plone">
8<body>
9
10<metal:content-core fill-slot="content-core">
11 <metal:block define-macro="content-core"
12 tal:define="uuid context/@@uuid"> **--修改**
tal:define="uuid context/@@uuid | nothing"> **--改正後**
13 <metal:listing use-macro="context/@@listing_view/macros/content-core">
14 <!-- we don't want the dl -->
15 <metal:entries fill-slot="entries">
16 <metal:block use-macro="context/@@listing_view/macros/entries">
17 <metal:entry fill-slot="entry" tal:condition="python: item.UID != uuid">
<div tal:define="obj item/getObject;" tal:replace="structure obj/@@full_view_item | nothing" />
</metal:entry>
</metal:block>
</metal:entries>
</metal:listing>
</metal:block>
</metal:content-core>
</body>
</html>
原文:https://github.com/plone/plone.app.contenttypes/commit/8b835c18859f6ad5067db45f87a018bdc0fff5a9