Skip to main content

Add a live search box to a SiteBuilder page

Add a search box to enable people to search a particular site or section of a site.

For example, we have a Search FAQs box at the right-hand side of all pages in the SiteBuilder help section. This search only returns results from pages under:

/services/its/servicessupport/web/sitebuilder2/faqs

The search does not return results from the rest of the IT Services website or SiteBuilder section. You see matching results as you type your query (also referred to as ‘live search’).

To add a live search box to your page:

  1. Browse to the page where you want to add the search box.
  2. Go to Edit > Edit centre content or Edit right content, depending on where you want to place the search box.
  3. Position your cursor where you want to insert the search box.
  4. Go to Insert a > Search box.
  5. In the Insert search box pop-up, enter the URL of the uppermost page (without the https://warwick.ac.uk) of the section you want to make searchable. For example – for the whole of the IT Services site:

    /services/its
  6. Optionally, enter a label e.g. Search IT Services. If you don't specify a label, Search for: is the default.
    Insert search box
  7. Select the Insert button.
  8. Code similar to the following is added to your page:

    [livesearch label='Search IT Services']/services/its[/livesearch]
  9. Once you've finished editing your page, click Publish.

Related help articles

Support

SiteBuilder support forum
Email webteam at warwick dot ac dot uk