Plone Training
latest
  • About Plone Trainings
  • Mastering Plone Development
    • 1. About Mastering Plone
    • 2. Introduction
    • 3. Installation & Setup
    • 4. Instalando Plone para el entrenamiento
    • 5. The Case Study
    • 6. The Features of Plone
    • 7. The Anatomy of Plone
    • 8. What’s New in Plone 5
    • 9. Configuring and Customizing Plone “Through The Web”
    • 10. Theming
    • 11. Extending Plone
    • 12. Extend Plone With Add-On Packages
    • 13. Dexterity I: “Through The Web”
    • 14. Buildout I
    • 15. Write Your Own Add-Ons to Customize Plone
    • 16. Return to Dexterity: Moving contenttypes into Code
    • 17. Views I
    • 18. Page Templates
    • 19. Customizing Existing Templates
    • 20. Views II: A Default View for “Talk”
    • 21. Views III: A Talk List
    • 22. Testing in Plone
    • 23. Behaviors
    • 24. Writing Viewlets
    • 25. Programming Plone
    • 26. IDEs and Editors
    • 27. Dexterity Types II: Growing Up
    • 28. Custom Search
      • eea.facetednavigation
      • collective.portlet.collectionfilter
    • 29. Turning Talks into Events
    • 30. User Generated Content
    • 31. Resources
    • 32. Using Third-Party Behaviors
    • 33. Dexterity Types III: Python
    • 34. Relations
    • 35. Manage Settings with Registry, Controlpanels and Vocabularies
    • 36. Creating a Dynamic Front Page
    • 37. Creating Reusable Packages
    • 38. More Complex Behaviors
    • 39. A Viewlet for the Votable Behavior
    • 40. Making Our Package Reusable
    • 41. Using starzel.votable_behavior in ploneconf.site
    • 42. Releasing Your Code
    • 43. Buildout II: Getting Ready for Deployment
    • 44. Plone REST API
    • 45. The Future of Plone
    • 46. Optional
    • Changelog
  • Mastering Plone Theming
  • JavaScript for Plone Developers
  • Automating Plone Deployment
  • OpsWorks
  • Orchestrating Plone Deployments with Amazon OpsWorks
  • “Through-the-web” Plone customization
  • Plone Training Solr
  • Mastering Plone Workflow
Plone Training
  • Docs »
  • Mastering Plone Development »
  • 28. Custom Search
  • Edit on GitHub

28. Custom Search¶

If the chapters about views seem complex, the custom search add-ons shown below might be a great alternative until you feel comfortable writing views and templates. Here are two addons that allow you to add custom searches and content listings through the web in Plone.

eea.facetednavigation¶

eea.facetednavigation is a full-featured and a very powerful addon to improve search within large collections of items. No programming skills are required to configure it since the configuration is done TTW. It lets you gradually select and explore different facets (metadata/properties) of the site content and narrow down you search quickly and dynamically.

  • Install eea.facetednavigation

  • Enable it on a new folder “Discover talks” by clicking on Actions > Enable faceted navigation.

  • Click on the Faceted > Configure to configure it through the web.

    • Select ‘Talk’ for Portal type, hide Results per page
    • Add a checkboxes widget to the left and use the catalog index Audience for it.
    • Add a select widget for speaker
    • Add a radio widget for type_of_talk

Examples:

  • https://www.dipf.de/en/research/projects
  • https://www.mountaineers.org/learn/courses-clinics-seminars
  • https://www.dyna-jet.com/hochdruckreiniger

Ver también

We use the new catalog indexes to provide the data for the widgets and search the results. For other use cases we could also use either the built-in vocabularies (https://pypi.python.org/pypi/plone.app.vocabularies) or create custom vocabularies for this.

  • Custom vocabularies ttw using Products.ATVocabularyManager
  • Programming using Vocabularies: https://docs.plone.org/external/plone.app.dexterity/docs/advanced/vocabularies.html

collective.portlet.collectionfilter¶

A more light-weight solution for custom searches and faceted navigation is collective.portlet.collectionfilter. By default it allows you to search among the results of a collection and/or filter the results by keywords, author or type. It can also be extended quite easily to allow additional filters (like audience).

Next Previous

© Copyright The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution 4.0 International license.. Revision 058f282c.

Built with Sphinx using a theme provided by Read the Docs.