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

Office information visible on people search results?

$
0
0

I have tried to get Office information visible in people search results page By editing DisplayTemplate like follows; added these lines but it doesn't become visible. What might be wrong:


<!--#_                                         if(has_office == true) {
_#-->
                                           <div id="BaseOfficeLocation">


<!--#_                                         var encodedoffice = $htmlEncode(ctx.CurrentItem.BaseOfficeLocation);


                                                var displayoffice = Srch.U.getSingleHHXMLNodeValue(hhProps, "BaseOfficeLocation");


                                               if ($isEmptyString(displayoffice)) { displayoffice = encodedoffice }


_#-->
                                               <div id="BaseOfficeLocationValue" class="ms-srch-ellipsis" title="_#= encodedoffice =#_"> _#= displayoffice =#_ </div>
                                           </div>
<!--#_                                         }
_#-->


<!--#_                                         if(has_office2 == true) {
_#-->
                                           <div id="Office">


<!--#_                                         var encodedoffice2 = $htmlEncode(ctx.CurrentItem.Office);


                                                var displayoffice2 = Srch.U.getSingleHHXMLNodeValue(hhProps, "Office");


                                               if ($isEmptyString(displayoffice2)) { displayoffice2 = encodedoffice2 }


_#-->
                                               <div id="OfficeValue" class="ms-srch-ellipsis" title="_#= encodedoffice2 =#_"> _#= displayoffice2 =#_ </div>
                                           </div>
<!--#_                                         }
_#-->


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>