Gravatar for icteam@internetcreations.com

Question by icteam, Feb 25, 2016 12:20 PM

How can I set specific layouts by

I followed the guidance on this online help article, and condition it to only display where raw.syssource == 'knowledge'

https://onlinehelp.coveo.com/en/cloud/creatingajavascriptsearchresulttemplatewiththeinterface_editor.htm

but the objecttype Salesforce Knowledge is still displaying the default template. I removed the default template and now now Knowledge articles are displaying. What do I need to do?

I'm having this issue for Chatter Question and Answers as well, where raw.objecttype =='Question'

Thank you

1 Reply
Gravatar for fdallaire@coveo.com

Answer by François Dallaire, Feb 25, 2016 2:09 PM

Is the name of your source really 'knowledge'? Try:

  1. In the search interface, hold the Alt key and double click a search result from your knowledge source.
  2. In the debug screen that appears, look for the syssource field value.
  3. Back in your condition use the same value.

If you want all sources of a given type to use the same template, rather use:

raw.sysconnectortype == 'ACrawlerType' 

The order in which the templates appear is also important. The first one of the list with a matching condition will be applied.

Gravatar for icteam@internetcreations.com

Comment by icteam, Mar 1, 2016 11:38 AM

Thank you! that was the issue. Borrowing straight from the documentation was what led me astray.

Ask a question