Modifying or Removing the Insert Option for the Coveo-Powered Search Page
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:
- Open the
Coveo.UI.Controls.config
file located in theApp_Config/Include
folder of your Sitecore instance. - Search for the
<AllowSearchPageRootPath
> element. -
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>
- 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:
- Disable the
AllowSearchPage
processor.- Open the
Coveo.UI.Controls.config
file located in theApp_Config/Include
folder of your Sitecore instance. - Find the
<uiGetMasters>
element which contains the processor that modifies insert options. - Delete the
processor
element. - Save the file.
- Open the
- 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 theCoveo-Powered Search Page (MVC)
template to be used anywhere in the content tree.