Skip to content

Instantly share code, notes, and snippets.

@thet
Last active January 15, 2018 11:28
Show Gist options
  • Save thet/6fa9e7b6277fd1b924d1c722fd3cc025 to your computer and use it in GitHub Desktop.
Save thet/6fa9e7b6277fd1b924d1c722fd3cc025 to your computer and use it in GitHub Desktop.
Plone: Add ``object_provides`` criteria to query string for use in collections. Put code in ``registry.xml`` and create a .tar.gz, then upload it via portal_setup and make sure to untick "Purge existing settings".
<registry xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<!-- Add ``object_provides`` criteria to query string for use in collections.
Put code in ``registry.xml`` and create a .tar.gz, then upload it via
portal_setup and make sure to untick "Purge existing settings". -->
<records interface="plone.app.querystring.interfaces.IQueryField"
prefix="plone.app.querystring.field.object_provides">
<value key="title">object_provides</value>
<value key="description">Search for provided interfaces</value>
<value key="enabled">True</value>
<value key="sortable">True</value>
<value key="operations">
<element>plone.app.querystring.operation.list.contains</element>
</value>
</records>
</registry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment