Gravatar for

Question by Ben Gilmore, Sep 14, 2018 3:07 AM

Dynamic templates in Salesforce community


I'm trying to come up with a way to do "if" type conditions in result templates in Coveo for SFDC Community Cloud. All our current templates are HTML.

I have a field with multiple values in it and want to say, "if the field contains X display this icon and text, if field contains Y display this other icon and text". Some results will need to have multiple icons and text to say "this applies to all these different types".

I know how I could do it with a huge list of different HTML templates with all possible combinations covered by conditions, but I'm sure there is a more elegant way.

From reading the documentation it looks like underscore templates aren't recommended for Salesforce - is there a recommended way to achieve this?


0 Reply
Ask a question