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
0 votes
1 answer
29 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
0 answers
31 views

Import Mock data into the project

I'm new to Sitecore JSS and I'm trying to set up my project on disconnected mode as I am using a non-windows/Macbook device. Basically I tried using docker for Mac, VirtualBox and Virtual Machine, but ...
user avatar
0 votes
1 answer
15 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,...
user avatar
1 vote
3 answers
125 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 ...
user avatar
  • 287
1 vote
2 answers
112 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 ...
user avatar
  • 181
1 vote
2 answers
127 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 ...
user avatar
1 vote
1 answer
56 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 ...
user avatar
  • 77
1 vote
1 answer
63 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 ...
user avatar
0 votes
1 answer
119 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 ...
user avatar
  • 395
1 vote
1 answer
251 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 ...
user avatar
0 votes
0 answers
37 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 ...
user avatar
1 vote
3 answers
467 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 ...
user avatar
  • 671
0 votes
1 answer
74 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 : ...
user avatar
  • 671
1 vote
1 answer
83 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 ...
user avatar
1 vote
1 answer
117 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 ...
user avatar
  • 25
0 votes
2 answers
104 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/ ...
user avatar
  • 35
0 votes
1 answer
176 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 ...
user avatar
5 votes
4 answers
1k 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 ...
user avatar
0 votes
1 answer
136 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 ...
user avatar
  • 2,221
2 votes
1 answer
58 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 = "/...
user avatar
2 votes
1 answer
24 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 ...
user avatar
  • 23
2 votes
2 answers
613 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 ...
user avatar
3 votes
1 answer
332 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 ...
user avatar
1 vote
1 answer
201 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 ...
user avatar
0 votes
2 answers
837 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 ...
user avatar
  • 39
1 vote
1 answer
75 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 ...
user avatar
  • 160
1 vote
0 answers
47 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 ...
user avatar
2 votes
1 answer
285 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 ...
user avatar
  • 1,115
2 votes
1 answer
394 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 ...
user avatar
  • 12.9k
2 votes
1 answer
1k 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 ...
user avatar
  • 19.1k
0 votes
1 answer
235 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 ...
user avatar
2 votes
1 answer
783 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 ...
user avatar
  • 21
4 votes
1 answer
280 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 ...
user avatar
  • 5,040
1 vote
1 answer
623 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
865 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] ...
user avatar
  • 490
2 votes
1 answer
555 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 ...
user avatar
  • 369
3 votes
1 answer
309 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 ...
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 ...
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 ...
user avatar
  • 63
1 vote
0 answers
32 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, ...
user avatar
  • 2,457
0 votes
1 answer
1k views

Selection of Global or Local Data source in presentation details

Selection of Data Sources in Presentation Details : There are two data sources for the footer component , one at the local repository level and another in the Global Content level. While choosing ...
user avatar
1 vote
1 answer
285 views

Sitecore Data source based on Country

We have requirement where based on Country User comes from Datasource should change corresponding to that country for example if User is accessing Site from China then Datasource should point towards ...
user avatar
1 vote
2 answers
3k views

Setting up Datasource in templates

I have a Droplink field and I am trying to set the data source in the templates. What I want to do is set the data source by id instead of path and also add a filter by templates For example query:/...
user avatar
7 votes
1 answer
343 views

Delete Data sources without any referrers

I would like to clean sitecore and delete all local data sources that are not in use. I know that I can go through each DataSource item and check in LinkDatabase if it has referrer or not. But I have ...
user avatar
  • 73
2 votes
0 answers
287 views

Get Lookup Source Pipeline not triggering for treelist

I have a dynamic source for a treelist field in my template. In order to resolve the source location, I created a pipeline in getLookupSourceItems section. The code snippet is shown below. public ...
user avatar
  • 798
2 votes
1 answer
293 views

Relocating items referenced by Datasources

In our articles we have a publisher control where we select the publisher in the data source: The problem is when I try moving the publisher to another location in Sitecore some of the links break ...
user avatar
  • 83
2 votes
2 answers
93 views

Managing field data sources per environment

We are using external APIs as data source values for some template fields within Sitecore. We would like to change that data source depending on the environment. For example, on staging the data ...
user avatar
  • 860
2 votes
1 answer
635 views

Map Model Metadata on page in View

I have a Article View Rendering that contain Datasource Location that points to its Article Datasource item. The view rendering cshtml file is Article.cshtml. I'm using Glass Mapper to map Article ...
user avatar
4 votes
1 answer
1k views

How to Join MongoDb Collections Using Sitecore Mongo Db Report Data Source

Am using sitecore 8.0, below code gets the analytics from the mongo db. I have two collections "ineractions" and "ContactId", I want to join both the collections using common field "contact" from ...
user avatar
  • 183
1 vote
1 answer
591 views

Accessing the 'Datasource Template' field in code

First time here. Is it possible to access the 'Datasource Template' field on a rendering? If so, how can this be achieved? I need to run a check to ensure that data sources are not removed but also ...
user avatar
  • 111