Gravatar for jpdery@coveo.com

Question by jpdery, May 5, 2014 12:50 PM

apex references: c, controllers

I see in the outofthebox Salesforce CoveoSearchPage that the page inherits a controller, and that it references some components like this:

I am not using a Coveo controller in my page. The "c" prefix does not work; I have to fully reference:

Where comes the "c"? Do I need to reference a controller to make the search page fully work?

2 Replies
Gravatar for glaporte@coveo.com

Answer by Gregory Laporte, May 5, 2014 2:21 PM

Custom components that you build inside your Salesforce org are prefixed by c. When you reference something in a package, you should add the namespace of that package. Therefore, when you want to add a component from Coveo's package, you should use coveosolutions: instead of c:.

Gravatar for olamothe@coveo.com

Answer by olamothe, May 5, 2014 2:31 PM

Do I need to reference a controller to make the search page fully work?

No, not necessary. In this case the controller is used by the component c:ConfigurationCheck to verify that you have correctly linked to a cloud org. Since you can remove this component, you can also remove the controller reference.

Ask a question