THIS IS ARCHIVED DOCUMENTATION

Modifying or Removing the Insert Option for the Coveo-Powered Search Page

Coveo for Sitecore 4.1 (November 2018)

The purpose of the AllowSearchPage processor is to allow a user to create a search page from the Content Editor out of the box. It automatically adds templates to create a search page for Web Forms and MVC to the insert options of the /sitecore/content item. Sitecore securities are still applied, so you can prevent users or groups from creating search pages with the Security Editor. To do so, just deny access to the Coveo-Powered Search Page and/or Coveo-Powered Search Page (MVC) templates as you want.

Changing the Item Path

If you prefer, you can change the item on which the insert options are added. Here follows the detailed procedure to change the setting:

  1. Open the Coveo.UI.Controls.config file located in the App_Config/Include folder of your Sitecore instance.
  2. Search for the <AllowSearchPageRootPath > element.
  3. Specify the path of the item (and sub items) under which you want to allow search pages to be created.

     <AllowSearchPageRootPath>/sitecore/content/my/new/item/path</AllowSearchPageRootPath>
    
  4. Save the file.

Managing the Insert Options Manually

If you want full control over where a user can create search pages, you may want to manage insert options manually. Here follows the detailed procedure:

  1. Disable the AllowSearchPage processor.
    1. Open the Coveo.UI.Controls.config file located in the App_Config/Include folder of your Sitecore instance.
    2. Find the <uiGetMasters> element which contains the processor that modifies insert options.
    3. Delete the processor element.
    4. Save the file.
  2. In Sitecore, add the necessary search page template to the insert options of the desired items. You can now choose to allow the Coveo-Powered Search Page or the Coveo-Powered Search Page (MVC) template to be used anywhere in the content tree.