Questions tagged [sitecore-query]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

SXA Search Scope Query

I'm trying to get use a scope that looks at two folders and two templates. I want my query to return all items using template A from folder A and all items using template B from folder B. I'm using ...
0
votes
0answers
32 views

complicated query for datasource location of rendering item

I have a multi-site kind of structure in Sitecore, that looks like this: sitecore -content -sites -site1 -homepage -contentpage1 -data -contentpage2 -data -site2 ...
0
votes
0answers
35 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 ...
2
votes
0answers
73 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 ...
0
votes
1answer
69 views

Sitecore Powershell - Get all items under buckets

I am trying to see if I can traverse through every node in a bucket and get all its items using PSE. All I am able to get is only the root bucket folder. I tried all the below options with no luck. ...
0
votes
0answers
49 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 ...
1
vote
1answer
42 views

Sitecore JSS component datasource xPath query

I am having following content tree Sitecore Content myapp home -Products -Product-1 Related-Products-1 (based on Related-Products custom template) – having multi-list field in which we can ...
0
votes
1answer
79 views

Multi-root treelist with queries

I'm trying to use the Multi-root treelist that Kam Figy made and that Zachary Kniebel extended. I used this guide to add the Field-type to the Core database. All is well, until I put query: anywhere ...
1
vote
0answers
35 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:./...
0
votes
0answers
40 views

Make query part of the branch template

I have a container module, which contains a number of modules which individually controls certain parts of an SPA. The container template is a branch template - which at item creation create the ...
1
vote
0answers
27 views

Sitecore query to segregate items based upon selected value [duplicate]

Sitecore: 9.0.2 + SXA 1.7.1 What i was trying to do: Inside a parent item 'Locations', i have multiple children items created on a common template. Each children item has a multilist field 'Location ...
1
vote
1answer
45 views

Using part of an item name as query filter

So, I'm trying to work my way to what is essentially a great aunt/uncle of the context item and then looking to its descendents for specific item types. So there's a folder and within that folder ...
2
votes
1answer
295 views

Any way to filter a treelist with just the source property of the template field?

I have a treelist that I'm pointing at a folder for items, which works fine, but when I attach some kind of filtering clause, like /*[@@tid='{ID}'] it just defaults to the root of the sitecore content ...
4
votes
1answer
90 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 ...
0
votes
1answer
52 views

set relative query to datasource

Each Article uses datasource underneath. I'm using query to find CTA button of current item but it returns nothing. query:.//Article Datasource/Article Top Content .
2
votes
2answers
78 views

Sxa tokens not taken into account in code query

I am working on a custom field which is based on :https://marketplace.sitecore.net/en/Modules/A/Advance_Image_Field.aspx I am trying to make it suitable for SXA by changing the way to find thumbnails....
1
vote
1answer
39 views

Multilist pick subcategory based on the category selection

I have a Categories Item and Each category has Sub categories - Category 1 - Sub Category 1 - Sub Category 1 - Sub Category 1 - Category 2 - Sub Category 2 - Sub ...
0
votes
0answers
78 views

xpath query as souce for image or file field

I continue to get a Value Cannot Be Null error when clicking on Open File or Browse for a File/Image field I'm trying to point to a specific folder. Here's the problem. The folder is in a part of ...
8
votes
1answer
511 views

What are the limitations of Fast query?

After reviewing this question and answer you can see that the use of Fast query is the leading cause of migraines. (<- unverified claim) What are limitations a developer should take into account ...
0
votes
0answers
21 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 ...
1
vote
0answers
65 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 ...
0
votes
2answers
311 views

Getting all items using a Specific Sublayout using Sitecore Powershell Extensions

I have to get data of rendering parameters used by a specific sub-layout. Is there a way to get all items which are using a particular Sublayout. Example: I have a Sublayout "SiteHeader" and it has a ...
1
vote
1answer
89 views

Multilist with search not loading for non admin

Data on the left side of the multi-list is not loading if the user is a non-admin. I have multisite on a single node so on the data source I've put Sitecore query as StartSearchLocation=query:./...
1
vote
1answer
236 views

Sitecore keywords in the metadata

Lets say we have 4 renderings on the Page and each rendering has a data source attached to it which has a Keyword field that is being used for SEO purpose. Is it possible to get all the attached ...
1
vote
1answer
314 views

Treelist to show the all the items in which have the items derived from templates mentioned in IncludeTemplatesForSelection parameter

I want to achieve the Treelist in such a way that it shows up all the ancestors of an item which is derived from the template mentioned in the IncludeTemplatesForSelection parameter of the query. ...
0
votes
1answer
109 views

Where is the value “Item owner: sitecore\smith” from “Quick Info” living in back-end SQL tables?

I'm unable yet to locate a particular "Item owner: sitecore\smith" value I see well-and-alive in Content Editor "Quick Info" of an item, but not in the SQL Server backend tables. I often pull a ...
0
votes
1answer
596 views

using sitecore queries to search for items whose names contain a specific string

I'm using this line of code to search for items whose names are exactly the string i provide in the query: string query = path + "//*[@@templatename = 'Template Folder' and @@name='" + year + "']"; ...
0
votes
1answer
273 views

How to sort items in a query inside a variant?

I need to sort items returning from a query inside a variant. For example query:.//*[@@templatename='Template']. I need to sort these items since it doesn't work through build query. Any ideas?
3
votes
1answer
418 views

Source Query using the current language version

I have a source query over a standard Multi-List field and I want the query to retrieve items based on the current selected language. Is there any attribute that could handle that in the source query?...
1
vote
1answer
177 views

Get the list of languages of an item in a droplist field query source [closed]

As a source for a DropList, I would like to use a query that returns the list of languages defined for a specific item. Is it possible?
1
vote
1answer
811 views

Fieldsource query for droptree field

Is it possible to use query for Droptree field in Sitecore 8.1? In a multisite solution, I would like to point Droptree field source to an item in that particular site. Is this possible?
2
votes
2answers
643 views

Results are not coming in the order using sortorder from lucene index

I have some items present in an item folder and want them to retrieve from Lucence index. There is a requirement that we have to order items in the Sitecore based on the order set on the Sitecore CMS, ...
1
vote
1answer
250 views

How to get first child of an item in content tree?

I am trying to get only one item under a specific page in the content tree using a query in variant. I tried query:.//* but it gets all children under that item. I only need the first one. Any ideas?
0
votes
1answer
242 views

SXA Add Query in the variant definition

I am using SXA 1.7 and need to add a Query item under my variant definition, I found that the query should be written using sitecore query format like "query:./*" to return the child items but it ...
2
votes
1answer
318 views

Controller action not called due to rendering datasource containing query:/

The existing project is upgraded from Sitecore 8.0 to Sitecore 9.0u1. After that, I've observed that few renderings are not working. The root cause is, controller rendering datasource query. If ...
0
votes
2answers
2k views

Multilist source query to exclude items whose parent has a specific template id

I'm on Sitecore 8.1 and I have an item that has a multilist that allows a user to select all items under a site, but I want to exclude a couple items and their descendants. The basic tree structure ...
4
votes
2answers
1k views

Why we should not use fast queries in Sitecore

As per blogs and best practices of Sitecore, its advised that fast queries should be avoided. The reason for that is fast queries will directly access the DB and fetch the results which causes ...
7
votes
2answers
4k views

Get all Children in the order defined in Sitecore

I have following structure in sitecore > Country > India > Srilanka > Bangladesh The following query returns all the child items but in alphabetical order string ...
1
vote
1answer
341 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 ...
0
votes
1answer
248 views

Error During Upgrading Sitecore 8.1 to Sitecore 9.0.1

Hi all i'm getting the following Exception while upgrading the instance: 6848 07:38:16 FATAL [Experience Analytics]: Failed to synchronize segments. Message: Object reference not set to an instance ...
1
vote
0answers
210 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 ...
0
votes
1answer
112 views

Add renderings for all specific folder items using PS

We have a following structure : master:/content/market1/myfolder master:/content/market2/myfolder master:/content/market3/myfolder etc. I would like to add renderings for all items within "...
0
votes
1answer
186 views

Finding siblings in buckets

We've a folder item which stores all new artciles. This item is bucketable. But after turning into a bucket, we are not able to find previous and next sibling of an item under bucket. The below code ...
0
votes
0answers
444 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 ...
0
votes
1answer
254 views

Multi list with search not working for Italian language

I have issue in Multi list with Search in Sitecore. I'm using Sitecore 8.1 along with Solr 6.5. I'm using the below query to load the items in the multi list. Items are loading perfectly on English ...
0
votes
1answer
690 views

Multilingual - Sitecore General Link Field Url Giving Embedded Language in Wrong Format

I have a requirement where my URL should be in format : http://domain/de-DE/pagename I have following settings done for my site: <setting name="Languages.AlwaysStripLanguage"> <patch:...
1
vote
1answer
101 views

Issue with publishing in Sitecore, datasource is not set for few items

I have a Sitecore 8 project where we have created a component for the editors to use. On that editor we used product detail where image carousel is being used to display images. An image carousel ...
5
votes
1answer
306 views

Sitecore Query - Restrict to context Language (in RSS feeds)?

I am using Sitecore's RSS feed, which has a field for Items. You can set this field to a Sitecore query to find items within your website to show within your RSS feed. I have it configured like so: ...
0
votes
1answer
77 views

Anchor tag not scrolling in EXM Generated in Outlook and GMail

I am sending email from Sitecore EXM 3.3. The email has a list of the Article as links on top and detailed articles list are at the bottom of the email. When user will click on an article link, the ...
2
votes
1answer
6k views

How to query for items under @@id with specific @@templateid

I'm trying to query a folder under the media library which has a bunch of templates based on a custom File template. I've tried to play around with a couple approaches but none of them have been ...