Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Checking context language for Sitecore item in XSLT

Modified: 2010/08/11 10:28 by Vincevanm - Categorized as: Sitecore, XSL
You can check if a specific language version of a Sitecore item is active in XSL this way:

< xsl:when test="$sc_currentitem/@language = 'nl-NL'">

Update: it's probably better to use:

< xsl:when test="sc:language() = 'nl-NL'" >

 © Evident Interactive BV