Customizing the Free Edition
- Using Custom Objects With the Coveo for Salesforce Free Edition
- Using Custom Fields With the Coveo for Salesforce Free Edition
- Using Many Knowledge Article Languages With Coveo for Salesforce Free
- Creating Multi-Value Fields
- Understanding How the Coveo for Salesforce Free Edition Uses the JWT Flow
- Linking the Coveo for Salesforce Free Edition to a Different Organization
- Getting Faster Results With the Coveo for Salesforce Free Edition
- Creating a Guest User Profile for Your Community
- Allowing Guest Users Access to Your Visualforce Community
- Adding Custom Fields to Result Templates
Allowing Guest Users Access to Your Visualforce Community
As of the July 2017 release of Coveo for Salesforce, you can grant guest users access to your Coveo component in a Visualforce community.
Before attempting to make your Coveo components available in your Visualforce community, ensure that you have already performed the following steps:
- Create a custom Visualforce page for your search page (see Creating a Custom Visualforce Search Page).
- Add your custom Visualforce page to a tab before including it in your community (see Assign Your Custom Search Page to a New Tab).
- Create a guest user for your community (see Creating a Guest User Profile for Your Community).
- Ensure that your guest user is part of an authorized profile or permission set for user impersonation (see Allowing User Impersonation).
Once you have performed these steps, you are ready to allow your users access to your Visualforce community.
- In Salesforce, in Setup, search for and select Visualforce Pages (Build> Develop > Visualforce Pages).
- Next to the Visualforce page used in your Visualforce community, select Edit.
Locate the line beginning with
CoveoV2:Search Interface. In this element, add a
anonymousUserparameter equal to your guest user username. The custom Visualforce search page could look like this:
<apex:page standardstylesheets="false" sidebar="false" docType="html-5.0"> <CoveoV2:SearchInterface mobile="false" name="myCustomPage" anonymousUser="firstname.lastname@example.org" /> </apex:page>
- Save the file.
- Ensure that your new component is accessible and added to your community:
- In Salesforce, in Setup, search for and select Sites (Build > Develop > Sites).
In the What is a Site? page, enter a new domain name for your community, and select Register My Force.com Domain.
- Select your community Site Label.
- Next to Site Visualforce Pages, select Edit.
- Ensure that your custom search component is under Enabled Visualforce Pages.
- Select Save.
- Add your custom Visualforce Page to your community (see Add Tabs to Your Community).
Your guest users should now be able to access and use your Coveo component in your Visualforce community.