I'm trying to define a display template for one of my site columns by using XSLT. One of the things I would need is the loginname (DOMAIN\user) of the currently logged in user.
There's one way described here, using parameterbindings. But I'm trying to make this as generic as possible, so setting the parameterbindings for each web part is unrealistic.
I found a way to get the user's ID on this page. And, based on the ddwrt namespace I discovered the method UserLookup
So I tried the following snippet:
<xsl:value-of select="ddwrt:UserLookup,($Userid,'ID')" />
But unfortunately this just returns a blank string. Where am I going wrong? If my current approach won't work, what other way is there?
DispForm.aspxwithout issue, but it doesn't work infldtypes.xsl- I think because the regular list-views do not include the parameter binding. – bgmCoder Dec 10 '15 at 17:02