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

Display custom AD properties in People Search Display Template ( Item_Person)

$
0
0

Hi

I have customising the results from the people search with a custom My_Item_person. html, adding email and work phone.   Ok .  Now I have 2 custom AD  properties that are mapped to each user. These in turn are both mapped to separate term sets in the term store.  Now I want to display them in the people search as they appear in the user's personal page: both custom properties ( under right eclipse) and  also Show More.

Now normally it's a case adding the  mapped properties 

mso:ManagedPropertyMapping msdt:dt="string">'RockBands':'RockBands',
Thereafter 

var has_uRockBands = !$isEmptyString(ctx.CurrentItem.RockBands);


<!--#_                                        if(has_uRockBands == true) {
_#-->
                                                  <div id="RockBands">

...

....

and so on

Unfortunately this does not work so I am thinking I need to find these custom property values form another location, once I have located the user and maybe need to make the managed property, selectable, queryable , in the Search Schema for the Site Collection. 

Could someone point me in the right direction please


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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