Skip to content

Instantly share code, notes, and snippets.

@jcallaghan
Last active October 24, 2019 15:01
Show Gist options
  • Save jcallaghan/8473df90b56da2607f1d043971bf96ab to your computer and use it in GitHub Desktop.
Save jcallaghan/8473df90b56da2607f1d043971bf96ab to your computer and use it in GitHub Desktop.
Hide the rich text editor in SharePoint 2007 and SharePoint 2010 using XSLT. See https://jcallaghan.com/2011/12/hiding-an-empty-rich-text-column-in-xslt/ for more information. #Website
// SharePoint 2007 = 59
// SharePoint 2010 = 37
<!-- any conditional formatting would go here -->
<xsl:if test="string-length(@Body) &gt; 37">
<!-- conditional formatting and presentation would go here -->
<div class="item body">
<xsl:value-of disable-output-escaping="yes" select="@Body"/>
</div>
</xsl:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment