Skip to content

Instantly share code, notes, and snippets.

@pgrunewald
Created May 4, 2016 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgrunewald/4015e9567accacd90db2505def9c2db3 to your computer and use it in GitHub Desktop.
Save pgrunewald/4015e9567accacd90db2505def9c2db3 to your computer and use it in GitHub Desktop.
Overriding listing_summary.pt without jbot.
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="plone">
<include package="plone.app.contentmenu" />
<!-- VIEWS FOR PLONE SITE ROOT -->
<browser:pages
for="Products.CMFPlone.interfaces.IPloneSiteRoot"
class="plone.app.contenttypes.browser.folder.FolderView"
layer="your.addon.interfaces.IThemeSpecific"
permission="zope2.View">
<browser:page
name="summary_view"
template="path/to/your/custom/listing_summary.pt"
menu="plone_displayviews"
title="Summary view"
/>
</browser:pages>
<!-- VIEWS FOR FOLDERS -->
<browser:pages
for="plone.dexterity.interfaces.IDexterityContainer"
class="plone.app.contenttypes.browser.folder.FolderView"
layer="your.addon.interfaces.IThemeSpecific"
permission="zope2.View">
<browser:page
name="summary_view"
template="path/to/your/custom/listing_summary.pt"
menu="plone_displayviews"
title="Summary view"
/>
</browser:pages>
<!-- VIEWS FOR ANYTHING WITH THE COLLECTION BEHAVIOR.
Note that these ignore other fields, but integrators should
create other themplates if they want that. Or improve the
query view widget. -->
<browser:pages
for="plone.app.contenttypes.behaviors.collection.ISyndicatableCollection"
class="plone.app.contenttypes.browser.collection.CollectionView"
layer="your.addon.interfaces.IThemeSpecific"
permission="zope2.View">
<browser:page
name="summary_view"
template="path/to/your/custom/listing_summary.pt"
menu="plone_displayviews"
title="Summary view"
/>
</browser:pages>
<!-- BBB OlD VIEW NAME REGISTRATIONS -->
<browser:pages
for="plone.dexterity.interfaces.IDexterityContainer"
class="plone.app.contenttypes.browser.folder.FolderView"
layer="your.addon.interfaces.IThemeSpecific"
permission="zope2.View">
<browser:page name="folder_summary_view" template="path/to/your/custom/listing_summary.pt"/>
</browser:pages>
</configure>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment