Skip to main content

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
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
0 votes
1 answer
2k 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 ...
Sandeep's user avatar
1 vote
1 answer
374 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 ...
user2332873's user avatar
1 vote
2 answers
5k 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:/...
Night Monger's user avatar
7 votes
1 answer
432 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 ...
Ihor's user avatar
  • 173
2 votes
0 answers
338 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 ...
adarsh's user avatar
  • 818
2 votes
1 answer
363 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 ...
jahan's user avatar
  • 83
2 votes
2 answers
96 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 ...
MikeD's user avatar
  • 870
2 votes
1 answer
705 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 ...
Đặng Tú's 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 ...
Suresh R's user avatar
  • 349
1 vote
1 answer
705 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 ...
jezzipin's user avatar
  • 111
2 votes
0 answers
804 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 ...
Dalibor Kovač's user avatar
0 votes
2 answers
4k views

Set relative datasource for rendering

I have a template configured for two devices. Each device has its own type of rendering, but they share the same data source item. Each instance of the page template will have the following structure ...
David Masters's user avatar
5 votes
2 answers
2k views

How to create component data sources automatically?

When a component is added to the page in the Experience Editor, its data source field is empty. The content editor then needs to manually create or select a data source in the "Select the Associated ...
Dmytro Shevchenko's user avatar
4 votes
2 answers
2k views

Custom rendering datasource syntax without breaking experience editor

I'd like to be able to use a custom datasource syntax for renderings and sublayouts. In particular I'd like to be able to handle custom prefixes for various different usages. The main one being site-...
zzzzBov's user avatar
  • 873
7 votes
2 answers
3k views

Automatically set datasource when adding a rendering to a page

My goal is to automatically set the datasource of a rendering when an certain rendering is added to the page in the Experience Editor. Since the datasource item is created when the user adds a ...
Nico Grms's user avatar
  • 575
10 votes
6 answers
5k views

Dynamic data source of the view rendering is not working in sitecore 8.2

I use sitecore 8.2 and I can't understand the purpose of the "Data source" field on the "View rendering" item. It seems that datasource works only when I statically specify it inside the cshtml file: ...
Sergey Smelov's user avatar
5 votes
2 answers
1k views

Can we design the View renderings with multiple data sources?

I am doing project in Sitecore MVC. For every view rendering we are giving one data source for model reference but I need to get the field values from multiple items. So can we design the view ...
Indrasena's user avatar
  • 337
4 votes
3 answers
11k views

Using Sitecore fast:query to grab all items under a specified page excluding items in a specific folder

I'm using the following query as a Source for my Droplink field: query:fast:/sitecore/content/Home/AboutPages//*[@@templateid!='{41BF6376-A2D4-4CF1-80C5-223067C84811}'] My intention is for this ...
c-bro's user avatar
  • 567
10 votes
3 answers
4k views

Automatically creating data sources for renderings on a new page

In a project, I have been working on before we had a solution in which when a content editor created a page of a certain type a Components folder was created and the renderings of that page would ...
Gluip's user avatar
  • 366
8 votes
4 answers
8k views

Set sitecore treelist datasource from multiple paths

Trying to set datasource for a treelist field in Sitecore. Need to set two different folders as path. DataSource=/sitecore/content/home/folder1|/sitecore/content/home/folder2 It does not work, it ...
TomCat's user avatar
  • 333
4 votes
1 answer
1k views

SXA and local vs reusable datasources in a custom control

In SXA we have components like the Rich Text component that have a version with a local datasource and a reusable version that gets a datasource from a global (site) folder. This all works fine and I ...
Gatogordo's user avatar
  • 20.1k
10 votes
2 answers
2k views

Relative rendering DataSource Locations

How do I define DataSource Location for rendering parameters, relative to the context item? When defining a DataSource Location for rendering parameters (Droplink or TreeList etc), using a relative ...
Kasper's user avatar
  • 2,156
6 votes
1 answer
1k views

Site-relative datasource locations

We have a multisite setup, where Shared Content is stored in a node for each site as a sibling to the site frontpage. For example: - Website 1 -- Home --- Some page -- Shared Content --- Contacts - ...
Kasper's user avatar
  • 2,156

1
2