Console
Console copied to clipboard
Scripted rendering datasource location not working due to DatasourceValidator
Expected Behavior
As depicted in this article you should be able to use a script to determine the datasource.
Actual Behavior
Sitecore is validating the datasource and breaks with "script:". This class appears to perform the validation Sitecore.Mvc.ExperienceEditor.Pipelines.Response.RenderRendering.AddWrapper.
TODO:
- [x] Add
ResolveRenderingDatasourcefor SPE before the call toAddWrapper. An example can be found in SXAsSitecore.XA.Foundation.LocalDatasources.dll. - [ ] Fix broken links message when setting
script:{GUID}on the rendering in the Datasource Location field. - [ ] Update the book with examples on how to properly use this feature.
This issue is stale because it has been open for 365 days with no activity.
This issue was closed because it has been inactive for 30 days since being marked as stale.