I'm trying to add some more information to the peopleresults.aspx.

I tried to follow the instructions here but I get an undefined error for the has_mPhone variable.

Is there something wrong is that blog post and how can I add the mobile phone number?


I do it for Twitter Name in a sample.

  1. Create the Managed Property if necessary
  2. Full People Crawl
  3. Copy the Item_Person.html file
  4. Add your property and the code to render it
  5. Publish the Display Template
  6. Create the Result Type rule
  7. Test

The whole walk through it here: http://www.ableblue.com/blog/archive/2013/06/05/introduction-to-sharepoint-2013-display-templates/

Video Here: http://www.ableblue.com/blog/archive/2014/03/08/spc322-sharepoint-search-display-templates-and-query-rules/

| improve this answer | |

You can try this example out. The example is around adding fax, but you can do the same thing around adding phone numbers.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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