Questions tagged [datasource]
For questions related to Sitecore data sources, including data source queries, data source locations, data source items, etc.
70
questions
0
votes
3
answers
43
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....
2
votes
1
answer
31
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,...
2
votes
1
answer
103
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 ...
0
votes
0
answers
37
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 ...
0
votes
1
answer
115
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 ...
1
vote
1
answer
73
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 ...
0
votes
2
answers
160
views
How to map child items using glass mapper 5.8?
I want to map child items which come from a parent datasource 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 ...
0
votes
2
answers
145
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?
0
votes
0
answers
63
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 ...
0
votes
1
answer
18
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,...
1
vote
3
answers
331
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 ...
2
votes
2
answers
637
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 ...
1
vote
2
answers
528
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 ...
2
votes
1
answer
120
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 ...
1
vote
1
answer
164
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 ...
0
votes
1
answer
225
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 ...
1
vote
1
answer
377
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 ...
1
vote
0
answers
41
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 ...
1
vote
3
answers
769
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
1
answer
94
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 :
...
1
vote
1
answer
131
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 ...
1
vote
1
answer
146
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 ...
0
votes
2
answers
132
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/ ...
0
votes
1
answer
243
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 ...
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 ...
0
votes
1
answer
185
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 ...
2
votes
1
answer
66
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 = "/...
2
votes
1
answer
28
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 ...
3
votes
2
answers
860
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 ...
3
votes
1
answer
403
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 ...
1
vote
1
answer
275
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
2
answers
957
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 ...
1
vote
1
answer
86
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 ...
1
vote
0
answers
55
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 ...
2
votes
1
answer
359
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 ...
2
votes
1
answer
441
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 ...
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 ...
0
votes
1
answer
263
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 ...
2
votes
1
answer
892
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
...
4
votes
1
answer
312
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 ...
1
vote
1
answer
677
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 ...
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] ...
2
votes
1
answer
582
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 ...
3
votes
1
answer
324
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 ...
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 ...
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 ...
1
vote
0
answers
35
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
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 ...
1
vote
1
answer
313
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 ...
1
vote
2
answers
4k
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:/...