I have a content query using custom XSLT that displays the user and his presence icon on the page.
I got the XSLT from this link
Here's a snippet of how I'm using it:
<xsl:variable name="UserEmail">
<xsl:value-of select="ddwrt:UserLookup(string(@Owner) ,'EMail')" />
</xsl:variable>
<xsl:variable name="UserFieldLogin">
<xsl:value-of select="ddwrt:UserLookup(string(@Owner) ,'Login')" />
</xsl:variable>
<td>
<img width="12" height="12"
id="{generate-id(@Owner)}"
onload="IMNRC('{$UserEmail}');"
src="/_layouts/images/blank.gif"
border="0" alt="UserPresence"
complete="complete" Sortable="1" valign="middle"/>
<a href="http://someDomain/Person.aspx?accountname={$UserFieldLogin}">
<xsl:value-of select="@Owner"/>
</a>
</td>
This works fine when there is only one user, but it doesn't work at all when multiple users are allowed.
How would this then be extended to accommodate multiple user values for @Owner
?
0 commentaires:
Enregistrer un commentaire