Basically what the title says I want to say what content type each search item is in the display template. How is this done???

1 Answer 1


Yes you can achieve this by updating the default item display template or make a copy of it and customize it based on your requirement.

Make sure you map ContentType field in ManagedPropertyMapping of display templates

some thing like below in your display template

'Line 2'{Line 2}:'ContentType'

Now in the html section you just append content type name contained in "line2" where ever you need. Like in below add a div next to oob elements

<div>_#= line2 =#_</div>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.