Skip to content Flash-fx website
flash-fx logo image1
flash-fx logo image2
Simple solutions to complex problems. Historical swordsmanship Great online resource and forums relating to Maya and 3D.
Home << Tutorials << Plone << Multiple customised searchboxes

Multiple customised searchboxes

Add multiple customised searchboxes to different folders in a plone site.
  • In the ZMI navigate to Portal Skins -> Custom and using the top right dropdown add a page template.
    Give it the ID 'portlet_searchbox' and click the add and edit button. Now replace the existing template content with the following:


  • The next step is to create a python script that will determine the location where the searchbox will be searching for content.
    In this case the searchboxes will be located in different folders in the path http://yoursite/sites/
    Go to Portal Skins -> Custom and create a new Script (python) from the top right dropdown.
    Give it the ID of getPath and click the Add and Edit button.
    Now replace the existing code with the following:


  • Now in any page templates in any subfolders in http://yoursite/sites/ where you want the searchbox to be displayed simply add the following code: