Console icon indicating copy to clipboard operation
Console copied to clipboard

Scripted rendering datasource location not working due to DatasourceValidator

Open michaellwest opened this issue 7 years ago • 1 comments

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 ResolveRenderingDatasource for SPE before the call to AddWrapper. An example can be found in SXAs Sitecore.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.

michaellwest avatar Mar 21 '18 16:03 michaellwest

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Jun 16 '24 02:06 github-actions[bot]

This issue was closed because it has been inactive for 30 days since being marked as stale.

github-actions[bot] avatar Jul 17 '24 02:07 github-actions[bot]