Gravatar for wvuong@captechconsulting.com

Question by wvuong, Dec 4, 2015 1:56 PM

Customizing Results Template MVC

I am trying to customize the results template for coveo search MVC and am having a hard time getting the actual value after I have the field name.

I've been using this guide but its for web forms.

After getting the coveo field how do I get the corresponding value?

1 Reply
Gravatar for wvuong@captechconsulting.com

Answer by wvuong, Dec 4, 2015 2:01 PM

The correct syntax for MVC is

{{=raw.@(Model.ToCoveoFieldName("sitecore field", false))}}

in order to get the value for the corresponding sitecore field

Ask a question