Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore: How do I retrieve the 'Display Name' in XSLT

Tags:

xslt

sitecore

I've tried
<sc:text field="Display Name" />
and
<xsl:value-of select="sc:fld('Display Name',.)"/>
and
<xsl:value-of select="sc:field('Display Name',.)"/>
with various different case and spacing.

All I can find online are examples of how to retrieve it in .NET code Sitecore.Context.Item.DisplayName

Am I missing something obvious? This has been bothering me for a while.

like image 443
tonyamazing Avatar asked Jan 25 '26 05:01

tonyamazing


1 Answers

Most standard fields on a Sitecore Item are prefixed with double underscores. I believe you'll find your value on "__display name".

like image 103
Mark Cassidy Avatar answered Jan 28 '26 05:01

Mark Cassidy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!