Add "Advanced Search" to Search Box
Rationale
Sometimes, you may want to create a Plone website that has a fairly large number of tabs at the top of the screen. Users typically don't like to scroll from left to right, so one way of narrowing your page is to hide the “Search” tab.
This tab, however, takes you to an advanced search page which could be very useful to a lot of your users. This tutorial shows you how to remove the “Search” tab and provide it as a link below the “Search” button at the top of the screen.
Hiding The Search Tab
First we need to hide the “Search” tab, which is very easy. From the Zope Management Inteface (ZMI), click on the “portal_actions” icon. Find the action named “Search” and uncheck the “Visible?” checkbox. Now the tab will no longer appear on any of you pages.
Changing The Header
Next, we need to change the header so that it has an “advanced search” link that points to the proper place. First, navigate to the “portal_skins/plone_templates” directory using the ZMI. Find the “global_searchbox” page templage and click on it. You should then see a gray box with all of the HTML that is used to make the header.
Above the HTML should be a dropdown list next to a “Customize” button. Choose the “custom” option in the dropdown list and click on the “Customize” button. You should now see the same HTML in a editable text box.
Note
It may appear as though you are editing the “portal_skins/plone_templates/header” document directly, but in fact you're editing a copy of that document that's in the “portal_skins/custom” directory. This version of the header file will supersede the original version when you load your pages.
Next, scroll down until you get about halfway down the page templage until you see the following line:
<form name="searchform"
This is the form that houses the textbox and button for simple searches. Find the closing “form” tag for this form, which should be about 18 lines below the line listed above. Put a blank space between the 'FORM' closing tag and the following line, the 'DIV' opening tag. This is where we're going to put our customized HTML.
Put the following HTML in the blank line:
<a href="ADVANCED_SEARCH" tal:attributes="href string:$portal_url/search_form"> Advanced Search </a>
Click on the “Save Changes” button and refresh your Plone website by holding down the “Control” button and clicking on the browser's “Refresh” button. You should now see an “advanced search” link below your search button, which should take you to the “Advanced Search for content” page.

