Questions tagged [datasource]

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

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
233 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 ...
2
votes
0answers
643 views

Set query as datasource in personalization

I'm on Sitecore 8.2, using MVC. I have two sites, and I'm defining presentation details on Standard Values of the template, so that I can use one presentation details setup for rendering the same ...
1
vote
0answers
37 views

Retrieving treelist selected items in another treelist field

I have two templates (Template1 and Template2) Template1 has a field List1 which is Treelist field type Template1 -List 1 (TreeList field) Template2 has a field List2 which is Treelist field type ...
1
vote
0answers
45 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 ...
1
vote
0answers
31 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, ...
0
votes
3answers
42 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 ...
0
votes
1answer
47 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 : ...
0
votes
0answers
36 views

Rendering Null Datasource In JSS Site

Some of my JSS components are throwing errors when trying to insert and edit them in the experience editor. Most of the errors come from the fact that the datasource hasn't been set yet. In MVC, I ...
0
votes
0answers
53 views

Get attached Datasource field value in the rendering template

There is a rendering parameter template Background Properties and it has a field Background Class. Rendering Parameter Template (Background Properties) -Field (Background Class) When rendering ...
0
votes
1answer
46 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 ...
0
votes
1answer
39 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 ...