all things Sitecore related

Tag: Sitecore Query

Escape characters / words in a Sitecore query

By on February 2, 2012 in Sitecore with 0 Comments
Escape characters / words in a Sitecore query

There are a few characters and words you need to escape while using Sitecore query. You can escape special characters wrapping them in a #. For example a hyphen in a query needs to be escaped. Example string query = "/sitecore/content//*[@#site-title#=’Example Value’]"; In the previous example we use the single quote (‘) to wrap the […]

Continue Reading »

Top