Sukhjeevan
Sukhjeevan

Reputation: 3156

Get item by Displayname using fast query in Sitecore 8.1

I have created a vanilla sitecore 8.1 MVC instance and trying to get home item by displayname using fast query but getting null value:

enter image description here

Do I need to do any configuration settings in web.config.I am passing "Home" in this function. I have set useDisplayName="true" attribute in <LinkManager> element in Sitecore.config file also.

Thanks

Upvotes: 0

Views: 824

Answers (1)

Mark Ursino
Mark Ursino

Reputation: 31435

You may need to query the field by its name with a lowercase "n":

fast:/sitecore/content//*[@__Display name='{0}']

Upvotes: 0

Related Questions