content type - How to add new collection criteria in Plone 5? -
i add new choice field named course dexterity content type file in new created instance. in order use field "course" criteria in /++add++collection, follow this guide , add these file registry.xml in plone/buildout-cache/eggs/plone.app.querystring-1.3.14-py2.7.egg/plone/app/querystring/profiles/default/registry.xml:
<records interface="plone.app.querystring.interfaces.iqueryfield" prefix="plone.app.querystring.field.course"> <value key="title">course</value> <value key="description">a custom course index</value> <value key="enabled">true</value> <value key="sortable">false</value> <value key="operations"> <element>plone.app.querystring.operation.string.is</element> </value> <value key="group">metadata</value> </records>
but can not find "course" in criteria list.
what can criteria collection?
first of all: modify plone source code bad practice. don't it. never.
the guide referring ok, it's intended used in new plone add-on must develop , add installation.
please read "develop plone add ons" guide.
in case: need simple add-on simple generic setup step contains registry.xml
file code above. after installing add-on (and every time reinstall it) registration added site.
Comments
Post a Comment