Skip to main content

Questions tagged [sitecore-query]

For questions related to the syntax of and issues with Sitecore Query notation

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9 votes
1 answer
5k views

Droplink source query breaks with templateid or templatename

I have a few fields in a template, and two of them have template name restrictions. Using the restriction, I get 0 results, and when removed I get all the items I want (plus others I don't) With ...
MStodd's user avatar
  • 284
4 votes
1 answer
533 views

Multiple queries for a droplink - removing duplicates

So, I have multiple organizations content on my site, they are all grouped into a regional content area, and I also have a global content area. One of my templates looks into a folder that has a ...
Levi Wallach's user avatar
  • 1,085
2 votes
1 answer
106 views

Sitecore datasource query by comparing pubDate to current date RSS Feeds

So I have this query: query:$home//[@@name='blogs']//[@@templatename='BlogArticle' and contains(@date, '202208')] It works fine, but my goal is to compare the value of the @date field to the current ...
Pinpaho's user avatar
  • 61
2 votes
0 answers
580 views

Build Scope Query to Get First level of Children

I am using Sitecore 9.1.1 and SXA 1.8.1 I have an item called Seat, this item is a parent to many other items on multiple levels of two templates, Topic Details and Topic Listing. In Seat (my parent ...
Mariam Nasr's user avatar
2 votes
2 answers
1k views

Multilist with Search to return descendant items

I am working on Multisite Sitecore instance and For "multilist with search" field I am trying to return all descendant items under folder item from a specific template using these queries ...
Haneen Daoud's user avatar
2 votes
0 answers
155 views

Item Query not returning results when search with custom field in Arabic language

I am using Item Query to get featured Items using Isfeatured field in template, so my query like this: +template:{A0ABC519-3848-4930-965A-90F9F1B7F319};custom:isfeatured|true;language:english It is ...
NAli's user avatar
  • 875
1 vote
0 answers
512 views

How to build Sitecore SXA Scope Search query with comoperations

I have requirement to show the query results based on the logged-in user-profile details, I was able to pass the query token field value dynamical by following the code. How to write a SXA search ...
KARASH's user avatar
  • 11
1 vote
0 answers
305 views

Xpath field contains case-insensitive string

I've been searching here for a solution but at least when I've tried out the answers in the Xpath builder I always get errors. I'm using Sitecore 8.2. The current query is: /sitecore/content/...
Levi Wallach's user avatar
  • 1,085
1 vote
0 answers
50 views

Multitennant Datasource locations for treelist

For input fields which support the query syntax its no problem like Droplist Grouped Droplist DropLink Grouped Droplink Checklist Multilist Droptree here I am using the following query query:./...
squadwuschel's user avatar
  • 1,165
1 vote
1 answer
621 views

Sitecore hosting on AWS with Blue/Green deployment for zero downtime

We are currently having Sitecore 8.2 update 6 runs on AWS. We are planning to implement Blue/Green deployment for zero downtime and disaster recovery. The plan is to have 2 set environments as Blue ...
Ethan P's user avatar
  • 71
1 vote
0 answers
423 views

Search filter for Year on a date field in template

I am using Sitecore 9.0.1 with SXA components. I have checked the SXA out of the box components for search functionality. For date fields, we have date range by which we can filter items in a specific ...
D J's user avatar
  • 385
1 vote
0 answers
366 views

Issue while using contains() for multilist with sitecore Query string?

While using query string as data-source getting some issue and facing challanges, here is the Query-string: ancestor::*[@@templatename='A']/Shared/*[@@templatename='AB']/*[contains(@...
Pradeep Gupta's user avatar
0 votes
0 answers
210 views

Sorting a Sitecore query used to populate a droplink

We have a query that's populated a droplink that displays photo items. It's grabbing these items from multiple locations, so the query is concatenating those subparts of the query. I'm wondering if ...
Levi Wallach's user avatar
  • 1,085
0 votes
0 answers
837 views

Problems with spaces in SPE Sitecore queries

I am using Sitecore 9.0 and SXA 1.8 and scaffolded a new tenant and site named New Tenant and New Site. When executing the following query using SPE I get not results: Get-Item -Path master:// -Query ...
Joost's user avatar
  • 1,907
0 votes
0 answers
30 views

Sitecore AD configuration of component 1.3 without domain name Login

I have integrated with Active Directory 1.3 and Login is happening perfectly fine with with the username as domain\username and password. My requirement is to just sign in without with domain. For ...
user2007879's user avatar
0 votes
0 answers
1k views

How to automatically escape item paths for use in Sitecore query

Is there some API utility method which can automatically escape an item path for use in a Sitecore query? I am building a query string in code which uses an item path. If the item path contains a ...
Matthew Dresser's user avatar