How can I customize the advanced search form of a plone site?
Hi all, I was wondering how to customize the advanced search form of a Plone Site. I've edited/customized the "search form" file in portal_skins/portal_forms. I actually don't want users to see all the content types checkboxes available but only a few ones. The code that renders the list of (content types) check boxes starts with: <span tal:repeat="type python:container.portal_types.listContentTypes()"> If I simply replace this line by the following: <span tal:repeat="type python:container.portal_types.listContentTypes()[0:3]"> (which actually only strips the list to its four first elements), the search form doesn't behave correctly anymore: it seems to always search in all the content types, even if the user has unchecked them all..? Do you know why this is behaving like that? Do you know HOW I can pick only a few content-types from this list to display? -- Jean
participants (1)
-
Jean Baltus