Closed fulv closed 7 years ago
I'll answer my own questions:
python:hasattr(brain.getObject(), 'getItem') and brain.getObject().getItem('somefield') in ['value1', 'value2'] and brain.getObject().getItem('someotherfield') == 'value3'
. This could be turned into a custom catalog index, as well.The trickiest part for me was figuring out how to create a button to download the search results with the currently selected criteria as an Excel file. But once I got a browser view that does that, I could simply write a classic portlet with a button that calls that view, and use that portlet as a widget.
Has anyone used eea.facetednavigation to build a search page for Plomino documents? I'm thinking of giving it a try unless anyone can give me strong reasons not to do it.
I want a faceted search page just for Plomino documents, not other Plone content. Also, I want only certain kinds of documents to be searchable. I can build custom indexers to be used by faceted nav widgets. The only problem I can think of is that I currently have the setting for "indexing in portal_catalog" turned off, so there are no brains to be returned and I'm not sure if my indexes would do any good. Then I could create custom views for the content area of the faceted nav page.
Thoughts?