开发者

Valid sitecore query - wrong xpath query

开发者 https://www.devze.com 2023-03-16 23:31 出处:网络
why does valid sitecore query:开发者_如何学C /sitecore/content/#My tree#/MyItems/*[contains(@@name, \'thename\')]

why does valid sitecore query:开发者_如何学C /sitecore/content/#My tree#/MyItems/*[contains(@@name, 'thename')] in xpath results to: Expression must evaluate to a node-set. Using sitecore developer center / xpath builder. Wanted to modify the query to use in code. Thanks,


This is a Sitecore Query, and isn't valid xpath. You can only use it in certain places within Sitecore (such as field sources) as well as within CodeBehind files.

There's a PDF document explaining it on the SDN

0

精彩评论

暂无评论...
验证码 换一张
取 消