[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Searching and Categorizing Content

webmaster at zope.org webmaster at zope.org
Tue Nov 25 07:42:35 EST 2003

A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx#3-82


      Often you will use a small list of terms with KeywordIndexes.
      In this case you may want to use the 'uniqueValuesFor' method to
      create a custom search form. For example here's a snippet of a
      Page Template that will create a multiple select box for all the
      values in the 'keywords' index::

        <select name="keywords:list" multiple>
            tal:repeat="item python:here.uniqueValuesFor('keywords')"
              opt value goes here

        % Anonymous User - Nov. 25, 2003 7:42 am:
         please refer to Products/PluginIndexes/README.txt to change the operator! the default is OR, not AND.

More information about the ZDP mailing list