How can I add portlets to a plone search or search results page? Using @@manage-portlets doesn't work (www.mysite.com/search/@@manage-portlets), I get an empty search result. I'd like to display the portlets of the root folder also on that pages, in my case the search column uses the whole page width.
I'm using plone 4.0.1.
Search results template has left and right portlet columns disabled (hidden): http://dev.plone.org/plone/browser/Plone/tags/4.0.1/Products/CMFPlone/skins/plone_forms/search.pt#L19
If you want to display portlets there you should customize or override your search.pt template by removing the corresopnding line:
disable_column_one python:request.set('disable_plone.leftcolumn',1);
disable_column_two python:request.set('disable_plone.rightcolumn',1);
Anyway this will not let you set specific portlets for search results, as it's just a template opened in the Plone site root context. So you'll see Plone site root portlets.
The only way I think you could achieve that is:
search-results).search as default page for that folder./search but to /search-results.search_form template (adavnced search) to redirect not to /search but to /search-results.I did it once in a Plone 3 site and it worked. Although it wasn't to display special portlets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With