Reputation: 3156
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:
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
Reputation: 31435
You may need to query the field by its name with a lowercase "n":
fast:/sitecore/content//*[@__Display name='{0}']
Upvotes: 0