# HG changeset patch # User Thierry Florac # Date 1545989034 -3600 # Node ID d8fbefa460d60ead06ac35c3fae1c928728d94c5 # Parent dc3c42f73b0e837a33dac8cff2f5b1cfa6b7eed9 Added site container view "title" property diff -r dc3c42f73b0e -r d8fbefa460d6 src/pyams_content/shared/site/zmi/container.py --- a/src/pyams_content/shared/site/zmi/container.py Fri Dec 28 10:21:37 2018 +0100 +++ b/src/pyams_content/shared/site/zmi/container.py Fri Dec 28 10:23:54 2018 +0100 @@ -115,6 +115,10 @@ self.state = '{}'.format( translate(_("Not published"))) + @property + def title(self): + return II18n(self.context).query_attribute('title', request=self.request) + @adapter_config(context=(IBaseSiteItem, IAdminLayer), provides=IBreadcrumbItem) class SiteContainerBreadcrumbAdapter(BreadcrumbAdminLayerItem): diff -r dc3c42f73b0e -r d8fbefa460d6 src/pyams_content/shared/site/zmi/templates/container-header.pt --- a/src/pyams_content/shared/site/zmi/templates/container-header.pt Fri Dec 28 10:21:37 2018 +0100 +++ b/src/pyams_content/shared/site/zmi/templates/container-header.pt Fri Dec 28 10:23:54 2018 +0100 @@ -10,9 +10,9 @@ - + - + ${view.title}