SharePoint - Add New! icon to Data View Webpart
To show the standard
SharePoint icon against new list items in a data view web part (or other XSLT web parts), use the following snippet:
<xsl:if test="ddwrt:IfNew(string(@Created))">
<img src="/_layouts/1033/images/new.gif" alt="New" />
</xsl:if>

<xsl:if test="ddwrt:IfNew(string(@Created))">
<img src="/_layouts/1033/images/new.gif" alt="New" />
</xsl:if>
Comments
Post a Comment