1

I'm trying to render the author field in a custom display template to show the Lync presence icon.

I would like to get a result similar to this template that displays the presence and the name. But i'm fairly new to display templates, and very new to JavaScript so i don't really know where to look and after what.

enter image description here

I was looking through some different OOTB templates and stumbled over the one called Common Hover Panel Body and there seem to be some JavaScript doing the work in there but i'm unsure what to extract. Has anyone done this before?

  • Are you looking to create a custom display template in which you would want to have such lync presence? – Asad Refai Jul 7 '15 at 9:57
0

You can investigate the code generated for presence indicator and the user, using developer tools. See this screenshot: enter image description here

  • 1
    I don't see how the CSS would help me.. i did use the debugger to see what templates was loaded on the image in my question and found a template that renders a user but i'm unsure what i really need to copy to make it functional. – Christoffer Jul 9 '15 at 7:02

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.