Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [datasource]

For questions related to Sitecore data sources, including data source queries, data source locations, data source items, etc.

Filter by
Sorted by
Tagged with
1 vote
1 answer
64 views

sitecore query from field value

I'm trying to make Sitecore Forms easier for my content editors to use. They use the Content Editor and never touch layouts, controls, or renderings. I've made an item template with a single droptree ...
Brian Heward's user avatar
1 vote
2 answers
317 views

This "Sitecore.Mvc.Analytics.Pipelines.Response.CustomizeRendering" is not found in Sitecore.Mvc.Analytics10.0.3

We are in the process of converting Sitecore 9.0.2 MVC project to Sitecore 10.0.3. The following code was used to convert the shorthand like site:$datafolder/Home/Banne to the absolute path in the ...
Eshu Kumar's user avatar
0 votes
0 answers
47 views

Create Wildcard Pages with dynamic content [duplicate]

I'm trying to create a page with a Wildcard item that displays different content depending on the url. That's why I created an item with a controller inheriting VariantsController. But I can't change ...
YohanA's user avatar
  • 1
0 votes
2 answers
127 views

Experience editor doesn’t allow edit data-source properties option for nested data-source items

We have a Datasource item having child items where root item is like a folder - inherited from standard template and allow some insert options to crate the child items. Root item given as a data ...
Santosh Kumar's user avatar
0 votes
3 answers
489 views

How can I get the datasource of a personalized sublayout (webforms)?

I'm working on enabling sublayout caching for personalized sublayouts. public class ContextCacheableSublayout : Sublayout { public override string GetCacheKey() { var cacheKey = base....
Erica Stockwell-Alpert's user avatar
2 votes
1 answer
93 views

Vanishing Data Source, Placeholder, etc Fields When Rendering Parameters Template Set

In Sitecore 10.1, when I set the Parameters Template in my rendering, the Edit component properties dialog shows the expected parameters fields but all other fields, including Data Source, Placeholder,...
Aron Boyette's user avatar
2 votes
1 answer
252 views

Incorrect datasource location being displaying in Experience Editor while adding new component

I am having an issue regarding datasource location while adding a component in experience editor. The component datasource location is set to a particular datasource folder item(/sitecore/content/Site ...
user9152709's user avatar
0 votes
0 answers
48 views

Custom code for sorting multilist not working

Tried to use custom code for populating multilist with sorted desired certain items of certain template sorted by publish date, after implementing code successfully, results in the multilist weren't ...
Mohamed Abbas's user avatar
0 votes
1 answer
352 views

Adding custom data source to multilist with search field not working

After creating a class to get desired sorted items to populate list, after making sure to type in the source correctly in the source field as code:namespace.classname, assemblyname , still results ...
Mohamed Abbas's user avatar
1 vote
1 answer
104 views

Extending treelist having issues with token resolver

I am following this article to extend treelist field - https://jammykam.wordpress.com/2016/01/06/specifying-query-and-parameters-for-sitecore-treelist-field-source/. We want to have a treelist field ...
Vinod Chavan's user avatar
0 votes
2 answers
369 views

How to map child items using glass mapper 5.8?

I want to map child items which come from a parent data source and I gave the parent datasource as the datasource for the rendering. This is my Datasource in my rendering This is my list of child ...
Raviraja's user avatar
0 votes
2 answers
412 views

How can I get data source of content of selected page using Sitecore PowerShell Extensions?

how could I get data source of content that is used in page using Sitecore PowerShell Extensions?
user avatar
0 votes
1 answer
29 views

Elapsed Datasources Remain and Return Null in Web DB

quick question. On my current project, content authors can select an expiration date for when a datasource item will become unpublishable. We are encountering an issue where once this date has elapsed,...
Henry Faulkner's user avatar
1 vote
3 answers
697 views

Setting a Relative Data Source in a Control

I have an Example page with a control on it. I want to reference a grandchild SubItem in that control. When I specify the full path as the Data Source everything works fine. However, I want to ...
Justin's user avatar
  • 311
2 votes
2 answers
1k views

How to specify a datasource for a droplist field in sitecore 8.0 template

I am using Sitecore 8.0 where I have created a template with field droplist field type and I want to give datasource for it where it references another template datasource. And we have Multiple Sites ...
Vinaya's user avatar
  • 321
1 vote
2 answers
1k views

Need help with a Query to select a data source context, for each site

I have a page template where when the site was setup it referenced the folder(Item ID), but now I have multiple sites and need it to reference ONLY the sites folders not just the main site. I am ...
user1566783's user avatar
2 votes
1 answer
168 views

A/B testing of components using Glass Mapper return "Data source invalid."

I am using Sitecore 9.3 with Glass Mapper 5.8.177 and component A/B testing does not work for me. I set up a simple component that works perfectly fine until I begin creating variants for A/B testing ...
9_9's user avatar
  • 121
1 vote
1 answer
275 views

Is it possible to pass an array data type to a react component with JSS Sitecore?

I am wanting to pass an array of string's into a react component with JSS Sitecore. At the moment, I am having to use CommonFieldTypes.SingleLineText in the sitecore component definition and splitting ...
Adam Brittain's user avatar
0 votes
1 answer
289 views

Programmatically get source of a Template Field

I have field in Template like Multilist with Search and Treelist with search. In these fields in the source a start search location is specified as below: I need to find out all templates ...
Debaparna's user avatar
  • 497
1 vote
1 answer
589 views

"Select the Associated Content" window not showing local data source folder as option

I have pages that live within a bucket. The pages are based on a branch template, such that each newly added page will also have a child item which serves as a local data source folder (which is used ...
Marcel Gruber's user avatar
1 vote
0 answers
44 views

Site breaks when page contains an unpublishable item

We have just upgraded from 8.2 to 9.3 and some behaviour has changed. In 8.2, when I make an item unpublishable and publish to cm/cd, the page loads fine without that item. In 9.3, the page doesn't ...
ventenni's user avatar
2 votes
3 answers
1k views

How to check request id is a page id or datasource id in code in Sitecore?

I want to check requested item id is a page item id or datasource item id through code. For more clarity, I have a scenario in SXA where we need to check requested id is page id or datasource id. If ...
Ashish's user avatar
  • 912
0 votes
1 answer
117 views

Removing datasource version of the page when we remove page version in Sitecore 9.1.1

I have added datasource version of the page through programming. When I am adding any version of the page then it will automatically add version for the datasource items in Sitecore 9.1.1. Queries : ...
Ashish's user avatar
  • 912
1 vote
1 answer
221 views

Editors cannot edit certain aspects of presentation details, such as a component's datasource or placeholder

I am working on an issue facing some Sitecore editors. These editors can edit items normally once it is locked to them but cannot edit certain aspects of presentation details of those items. If the ...
Carlos Rodriguez's user avatar
1 vote
1 answer
170 views

Datasource location overwritten at JSS deploy

The datasource location field of the renderings after deploying the items with JSS is by default : ./Page Components|/sitecore/content/tudorlocal/Components/ContentTest However, when adding a ...
pcolas's user avatar
  • 25
0 votes
2 answers
152 views

Not able to point to correct datasource location after upgrading Sitecore 9.0.1 to 9.2

We recently migrated our site from 9.0.1 instance to 9.2. Everything works fine except that when I select a rendering in experience editor and try to locate the Datasource location for creating/ ...
Shomila's user avatar
  • 45
0 votes
1 answer
394 views

How to change data-source path "local:/data/test" to GUID programatically when saving page in Experience editor

We are using Sitecore 9 with SXA. As per my understanding, it was designed to have a path with local:/ for certain reasons. But, as per our business requirements, we need to update rendering with a ...
rajender patel's user avatar
5 votes
4 answers
2k views

Datasource Location not working as expected

I created a rendering for my form and linked the datasource location to sitecore/forms (which should be correct). The mysterious thing about this is that when I select my rendering in the experience ...
Robin Lundgren's user avatar
1 vote
1 answer
241 views

How to link branch template children items (data sources) with its parent renderings in Sitecore 7.2?

I'm following this blog post from Zachary which is pretty clear. http://zacharykniebel.com/blog/sitecore/2016/march/30/using-sitecores-new-addfromtemplate-item-provider-pipeline The only issue is ...
Hugo Santos's user avatar
  • 2,311
2 votes
1 answer
74 views

GetRenderingDatasourceArgs.DatasourceRoots never use the other items added into it

I'm extending Sitecore.Shell.Applications.WebEdit.Commands.AddRendering, and from the code there's GetRenderingDatasourceArgs.DatasourceRoots and I am adding items on it: var customdatasourceroot = "/...
Tofu TheGreat's user avatar
2 votes
1 answer
38 views

Additional links next to Field name?

I am new to develop using Sitecore and have a question I saw in some tutorial website there are addition links next to the field name, like [Go to field] [Reset Field] [Go to datasource] Is this ...
Anthony's user avatar
  • 23
3 votes
2 answers
1k views

Copy/Duplicate items - datasource of local components points to original item instead of newly created local item

This is an old issue, and it was resolved in our old 8.2 instance by a prior dev but after upgrading to 9.0 the issue has reappeared. When a user copies or duplicates an item, all of the local ...
Erica Stockwell-Alpert's user avatar
3 votes
1 answer
459 views

Enabling Item Language Fallback for SXA component datasources

In our Sitecore instance we have a number of different languages, and we have enabled item level language fallback. We have enabled item level fallback on all of our page templates, and this works as ...
LukasEngedalNC's user avatar
1 vote
1 answer
324 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 ...
Amit Kumar's user avatar
0 votes
2 answers
1k views

Dynamically change the rendering datasource without updating the item

I am trying to set a data source during runtime without updating the item in rendering, but am not able to achieve it. I tried the below approach, but that is updating the rendering data source, I ...
Prakash's user avatar
  • 49
1 vote
1 answer
95 views

Are individual yml files needed for each component param option?

As an example, I'll use a generic content Block component. This component, among other params, would have a columnSpan param. As far as I can tell, the only way to predefine options for that param is ...
Jbird's user avatar
  • 160
1 vote
0 answers
65 views

Media datasource using Sitecore SXA

How do I add media datasource (I want customers to able to select images from a particular folder) in Sitecore SXA using experience editor. Currently,I have added datasource in the template and works ...
Niti Chauhan's user avatar
2 votes
1 answer
423 views

Template source location media folder

When I create a template entry for an image with source location like /sitecore/media library/Icons/Bezahlarten I've added some images to this folder, but when I whant to select an image for this I ...
squadwuschel's user avatar
  • 1,165
2 votes
1 answer
491 views

Field source tokens for media items like image field

I have been using tokens for a while, patching in a processor to the getLookupSourceItems pipelines and transforming a token like $siteName$ into the site name. Or $site$ into the the current sites ...
Chris Auer's user avatar
  • 13.1k
2 votes
1 answer
2k views

Getting a "Resource you are looking for has been removed" error in the datasource selection dialog

In a custom SXA control (just a copy of Promo) we started getting the error: "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." This happens on ...
Gatogordo's user avatar
  • 20.1k
0 votes
1 answer
301 views

How to get SXA datasource items from personalization

I'm trying to get all datasources of a rendering, including personalization. As we are using SXA the datasource strings look like this: local:/Data/Test What is the best way to get the item from ...
Lars-Pascal Körber's user avatar
2 votes
1 answer
968 views

Sitecore Image Field Source to filter on template type

Is it possible to set the source of an image field so it filters on a specified template name. so only showing these images to be associated with the item Tried various ways from the following link ...
Mathew's user avatar
  • 21
4 votes
1 answer
330 views

Edit a Sitecore item in memory only

I'm using a custom item resolver to take a call to a wildcard item and use the URL to grab an item in a catalog of products (not Commerce). I've got the parser set up, but I've hit a conundrum. The ...
Ken McAndrew's user avatar
  • 5,102
1 vote
1 answer
741 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 ...
user avatar
2 votes
2 answers
1k views

Relative datasource for template field

I have created a branch template [Comparison Chart] which contains a folder item called [Headers] which is designed to contain items of the template [CChart Header]. Inside the [Comparison Chart] ...
Michael's user avatar
  • 520
2 votes
1 answer
613 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 ...
venkat's user avatar
  • 398
3 votes
1 answer
337 views

Add “New Folder” button to datasource picker [closed]

I'd like to enable content editors to better structure their local datasources in the Sitecore Editor when using the experience editor to select datasources for renderings. I'd like them to be able ...
Chris's user avatar
  • 139
1 vote
2 answers
1k views

Failed to execute datasource query System.NullReferenceException while setting Datasource on Rendering

Has anyone seen this error before or know how to solve it? 996 16:35:46 WARN Failed to execute datasource query System.NullReferenceException: Object reference not set to an instance of an ...
Michael Edwards's user avatar
6 votes
3 answers
1k views

DatasourceUsagesCount request slowing down Experience Editor

I am using Sitecore 8.2. The Experience Editor has a feature called as "Usage" which appears in the widget that shows when we select a component/rendering. The purpose of the usage functionality is to ...
Jay's user avatar
  • 63
1 vote
0 answers
41 views

How Does __Preview Get Populated

In a Sitecore 8.2 (rev. 170614) instance an item was throwing the following error when selected in content editor: Server Error in '/' Application. Data at the root level is invalid. Line 1, ...
Teeknow's user avatar
  • 2,477