Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

People Search Results Display Templates given no results on Custom Managed Property

$
0
0

I have created a people search results web page that displays with several custom managed properties, two custom properties will not display in the people search results web page but all others will display. Any assistance would be great.

<mso:ManagedPropertyMapping msdt:dt="string">'AssistantPhone':'AssistantPhone','Assistant':'Assistant'</mso:ManagedPropertyMapping>

<div id="Item_Person">
<!--#_
     if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
var has_Assistant = !$isEmptyString(ctx.CurrentItem.Assistant);
var has_AssistantPhone = !$isEmptyString(ctx.CurrentItem.AssistantPhone);
_#-->

<!--#_ if(has_Assistant == true) { _#--><div id="AssistantField"><!--#_ var encodedAssistant = $htmlEncode(ctx.CurrentItem.Assistant); var displayAssistant = Srch.U.getSingleHHXMLNodeValue(hhProps, "Assistant"); if ($isEmptyString(displayAssistant)) { displayAssistant = encodedAssistant} var encodedAssistantPhone = $htmlEncode(ctx.CurrentItem.AssistantPhone); var displayAssistantPhone = Srch.U.getSingleHHXMLNodeValue(hhProps, "AssistantPhone"); if ($isEmptyString(displayAssistantPhone)) { displayAssistantPhone = encodedAssistantPhone} _#--><table><tr>
<td style="width:90px;"><span id="FieldTitle" class="ms-soften">Assistant</span></td><td><div id="AssistantValue" class="ms-srch-ellipsis" title="_#= encodedAssistant =#_"><a href="/SearchCenter/Pages/peopleresults.aspx#k=_#= displayAssistant =#_"> _#= displayAssistant =#_ </a></div></td><td style="width:90px;"><span id="FieldTitle" class="ms-soften">Assistant Phone</span></td><td><div id="AssistantPhoneValue" class="ms-srch-ellipsis" title="_#= encodedAssistantPhone =#_"> _#= displayAssistantPhone =#_ </div></td></tr></table></div><!--#_ } _#-->



Viewing all articles
Browse latest Browse all 7589

Trending Articles