Sep
02
Filed Under (Design, Tips and Tricks, XSLT) by Andy Diericks on 25-04-2007

Again a little tip concerning SharePoint and XSL.

Add the following snippet in the xsl file, for example one of your custom style in the itemstyle.xsl file.

<span class="presence-status-icon">
              By: <a href="http://[MySharePoint]/sites/intranetbelgium/_layouts/userdisp.aspx?ID={$AuthorID}">
                <xsl:value-of select="concat($AuthorName,’ ‘)" />
              </a>
              <img src="/_layouts/images/blank.gif" onload="IMNRC(’{$AuthorEmail}’)" alt="" id="{concat(’MWP_pawn_’,$ClientId,’_',@ID,’type=sip’)}" /> 
  </span>

Tips: you can add "ShowOfflinePawn=1” before the add property in the img tag, this will show the offline picture of OCS if the “AuthorName” is offline. I personnally prefer to remove it, I found that cleaner.



Post a comment
Name: 
Email: 
URL: 
Comments: