Welcome to the OpenCities help centre. Search for what you're after, or browse the categories.
Can't find what you're looking for? Submit a support ticket and we'll be in touch.

Follow

Set Up Internal Site Search

avatar of OpenCities Product Team

OpenCities Product Team

Last updated

This task is for users with the OC Site Manager or OC System Administrator roles.

This Websites and CMS solution has a built-in internal search function that allows your community to find the content they're looking for on your site. Our site search module makes it easy to control which content types can be found using the site search.

example of a search results page

Additionally, there are other tools you can use to boost your pages in search results, such as Best Bets and adding common search terms.

There are two steps to setting up your site search correctly:

  1. Create a search results page
  2. Configure your site search

Or, you can watch this video to get started:

Create a Search Results Page

You need a search results page before your community members can use your site search effectively. When we create your site, we create a search results page for you. If you accidentally delete it, here's how to create a new one:

  1. Right-click in the site tree and select Create Page. As this page will be hidden from search and navigation, it does not matter where you create this page. We often see search results pages made on the top level of your site tree, but you may also want to create it in a "System pages" folder. 
  2. Choose OC Module Interface as the content type.
  3. From the Template Name drop-down menu, select OC Content Search Results.
  4. Give your page a name and title, and fill in any other details you need to.
  5. Switch over to the Settings tab and check the boxes to Hide this page from search and Hide this page from navigation menus so that it won't appear in your navigation menus or the site search.
  6. Publish your page.

Configure Your Site Search

Once you've created your search results page, you can start configuring your site search module.

  1. Go to More > Site Management > your site > Settings > Site Search.
    the site search icon in site management
  2. Under Search results page, select the page you've created for your search results. This setting uses a predictive text field, so you can start typing out the Page name of your search results page and select it from the list.
  3. Under Select which content types are included in site search, check the boxes next to each content type you want to include.
  4. If you want to use the same settings for predictive search, check the box to Include same content types in predictive search.
  5. Or, select different content types for predictive search under Select which content types are included in predictive search. Selecting differing content types for this setting can prevent your predictive search results from getting too cluttered. We recommend using this setting to show navigational content types, such as OC Landing or OC Module Interface, and enabling popular content types such as OC General or OC Service
  6. Select Save Settings, then Save.

The content types you've selected will now appear in your search results.

the site search settings in site management

What Else?

Was this article helpful?
0 out of 2 found this helpful