Skip to main content

A product that change the base site search of Plone with some new features.

Project description

Introduction

A product that override basic plone search template and add some new features. It has a left column with the search form and some additional fields to refine the search:

  • A radio button for choose if search in the current path or all portal

  • A list of indexes customizable from control panel

In the central frame there are the results, grouped in tabs (customized in the control panel)

Settings

In the control panel (RER Sitesearch) you can set some search parameters. The most important are “tabs”, “indexes” and “hidden indexes”.

Tabs

There is always a generic tab “All” that shows all search results. In this configuration panel, you can set a list of additional tabs that will group results by portal_type.

For example you can add a tab “Documents” that contains documents and files. Another tab “News/events” may contain News Items and Events.

And so on.

You can also define the order of these tabs.

If you are a developer and provide a translation file with “rer.sitesearch” domain, you can translate the tabs in different languages.

Indexes

The search view shows a list of parameters (indexes in catalog) in the left column to refine the results.

In Sitesearch control-panel you can define which indexes to show, with which label and the order.

Hidden indexes

Sometimes the users came in the search form after clicking somewhere in the site, for example in a calendar portlet. The generated url add some query parameters like “start” and “end” to perform the search and show only the events in the selected dates.

The search engine of rer.sitesearch remove all indexes passed in the query that don’t match with it’s indexes configuration, to avoid unwanted searches, so for example if you don’t want to show some date filters in the sidebar, these filters (start and end) will be stripped from the query and the search will be useful.

Hidden indexes configuration allows to define a set of indexes that needs to be kept for special searches like these. So if a parameter matches this list will be included in the query and not stripped.

Development

Resources are registered on a separate bundle, and are compiled and minified by a grunt task.

To setup node/grunt environment, first of all you need to launch this command:

npm install

When you need to change some resources, you need to recompile them, and you have two ways.

grunt

this start a watch demon that listen to changes and recompile them automatically

grunt compile

compile all resources

Dependencies

This product works only on Plone > 5.0

Previous versions (<3.0.0) still works with Plone4, but aren’t on pypi (only on github on branch plone4).

Contribute

Credits

Developed with the support of

Regione Emilia-Romagna

Regione Emilia Romagna supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

3.1.0 (2017-12-21)

  • Move resources to a separate bundle [cekk]

  • Improve IE11 compatibility [cekk]

  • Improve documentation [cekk]

3.0.1 (2017-09-18)

  • Fix query generation in sitesearch.js. Now doesn’t include ajax_load in the url [cekk]

3.0.0 (2017-09-13)

  • more like this [mamico]

  • Plone 5 compatibility. Drop Plone 4. Use plone4 branch. [cekk]

2.4.3 (2015-12-02)

  • Fix tests [mamico]

  • Plone 4.3 compatibility [cekk]

2.4.2 (2015-01-19)

  • Fix controlpanel icon [cekk]

2.4.1 (2014-12-09)

  • If search term string changes (searchableText) and the form is submitted, reset the all query and start with a new one [cekk]

2.4.0 (2014-11-24)

  • Add support to collective.solr [cekk]

  • Add configuration to limit word length and number of words in SearchableText [cekk]

  • Rewrite html for search results [cekk]

2.3.3 (2014-02-20)

  • Fixed search results structure [cekk]

2.3.2 (2014-01-13)

  • Fixed timezone handling [cekk]

2.3.1 (2013-12-06)

  • fixed tabs order results [cekk]

  • fixed bug in Plone timezones handling for start and end dates [cekk]

2.3.0 (2013-07-08)

  • refactored view to support plone.app.search [cekk]

  • moved configuration from site_properties to registry [cekk]

  • added tests [cekk]

  • customized “skip_links” viewlet for search view [cekk]

2.2.1 (2012-10-12)

  • fixed indexes column population [cekk]

2.2.0 (2012-10-08)

  • refactoring for Plone 4: now the template is removed and replaced by a view [cekk]

2.1.1 (2012-10-04)

  • fixed update step [cekk]

  • fixed first tab selection [cekk]

2.1.0 (2012-10-04)

  • moved search from skins to a view, for Plone4 compatibility (it isn’t new-search like yet) [cekk]

  • added uninstall profile to remove skins [cekk]

2.0.2 (2012-08-23)

  • fixed style for results [cekk]

2.0.1 (2012-08-03)

  • removed search_form.pt [cekk]

2.0.0 (2012-08-02)

  • cleanup old Plone 3.2 garbage [keul]

  • fixed search view styles [cekk]

  • added configlet to manage sitesearch options [cekk]

1.5.1 (2012/04/23)

  • added class to hidden indexes info div [cekk]

  • fixed hidden indexes management [cekk]

1.5.0 (2012/04/16)

  • refactoring sitesearch_view to speed up searches [cekk]

1.4.1 (2012/03/26)

  • fix translation [cekk]

1.4.0 (2012/03/12)

  • Customized Date index for events [cekk]

  • Show date and location in events [cekk]

  • Use Date index to sort on dates [cekk]

  • Add “hidden indexes” configuration [cekk]

1.3.1 (2011/11/28)

  • Fix error in title whent the path is incorrect [cekk]

1.3.0 (2011/11/28)

  • Fix layout and css [nekorin]

1.2.0 (2011/06/20)

  • Add tabs customization [cekk]

1.1.1 (2011/04/07)

  • Remove alphabetical sorting for indexes. Now indexes are sorted in the configuration panel [cekk]

1.1.0 (2011/04/04)

  • Remove taxonomies specific tab. Now needs to be set in the config panel [cekk]

1.0.6 (2010/11/08)

  • Fix js for batching [cekk]

1.0.5 (2010/11/08)

  • Categories are filtered beside the selected type [cekk]

1.0.4 (2010/11/04)

  • Remove setup.cfg [cekk]

1.0.3 (2010/11/04)

  • Refectoring for browser history [cekk]

1.0.2 (2010/10/28)

  • Remove folder title in the view [cekk]

1.0.1 (2010/10/28)

  • Remove searchSubject index [cekk]

  • Change fieldname for sorting [cekk]

  • Add header with folder name [jacopo e cekk]

1.0.0 (2010/09/23)

  • Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rer.sitesearch-3.1.0.tar.gz (74.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page