You are here: Home Plone products LiveSearchWidget

LiveSearchWidget (1.1.3)

1
by Olha Pelishok last modified 2010-02-12
0.0
0.0
0.0
0.0
Released on 2010-02-10 by Goldmund, Wyldebeast & Wunderliebe for Plone 3.3 under GPL - GNU General Public License available for All platforms.
Software development stage: stable
The LiveSearchWidget is a widget that can be used for a referencefield. This widget (in edit mode) will let you search for objects in a livesearch way that is very similar to the plone livesearch functionality.

Introduction

The LiveSearchWidget is a widget that can be used for a referencefield. This widget (in edit mode) will let you search for objects in a livesearch way that is very similar to the plone livesearch functionality.

The search is performed using a standard catalog search, on the index "SearchableText".

This widget was put together using exising code from plone's livesearch together with a little bit from ATReferenceBrowserWidget code. By copying the plone livesearch stuff, we think this widget will be quite solid on most modern browsers.

Prerequisites

  • Plone 2.5 (???)
  • InstallUtils (http://www.goldmund-wyldebeast-wunderliebe.com/products)
  • Archetypes
  • ATReferenceBrowserWidget

Installation

Install the product using the quick_installer.

Known limitations

  • field needs to be a referencefield
  • field needs allowed_types property with only 1 element   (e.g. allowed_types=('Document',) )
  • vocabulary not supported. This is something that needs some work. Suggestions are more than welcome

 

workaround: as a hacked workaround you can create a script with the name "getExtraLiveSearchArgs" which takes "field" as a parameter. Whatever this script returns will be added to the catalog search  with index "SearchableText" (e.g. return "beer*) will search for any word(s) you type + "beer*"

 

Document Actions
Powered by Plone