i recently tried to modify a view with JSLink, modification works very good, but userfields are not correct provided if JSLink is in use.
By default a userfield is rendered blank at first glance. Looking into HTML it renders as
<span class="ms-floatLeft ms-peopleux-vanillaUser">
<span class="ms-floatLeft ms-peopleux-vanillaUser">
<span class="ms-floatLeft ms-peopleux-vanillaUser">
<span class="ms-floatLeft ms-peopleux-vanillaUser">
<span class="ms-floatLeft ms-peopleux-vanillaUser">
</span></span></span></span></span>
Debugging context.CurrentItem provides that the given value is only the UserID
CurrentItem:
{ Title: "Test", Editor: "1", PublishingPageContext:"...", ... }
JSLink:
(function () { var bodyFiledContext = {}; bodyFiledContext.Templates = {}; bodyFiledContext.Templates.Fields = { "PublishingPageContent": { "View": bodyFiledTemplate } }; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(bodyFiledContext); })();
Any chance to get the username?