Closed slate1325 closed 2 years ago
This was discussed a little on Slack, adding some details from that conversation:
ExpandRenderingParametersTemplates
does not set inherits
on the rendering parameters template during import. should be able to inherit from ExpandRenderingParametersTemplates
and override what you need there to set it.CreateTemplateDefFromRenderingParametersDefs
is the method you would override to set this.Did this address the issue @slate1325?
This was discussed a little on Slack, adding some details from that conversation:
ExpandRenderingParametersTemplates
does not setinherits
on the rendering parameters template during import. should be able to inherit fromExpandRenderingParametersTemplates
and override what you need there to set it.CreateTemplateDefFromRenderingParametersDefs
is the method you would override to set this.Did this address the issue @slate1325?
@erzr , working on the fix now. Will keep you posted.
Thanks!
Created a github repo that addresses the issue: https://github.com/slate1325/JSS-Import-Rendering-Parameters-Template
Just a heads up, a backlog item has been added to address this issue in a future release. Thanks for reporting the issue.
Looks like this is still an issue? I'm new to jss so just wondering what is the impact of overriding generated rendering parameters to inherit from Standard Rendering Parameters template?
@markgibbons25 Just confirmed, this is still an open issue (I've poked to get prioritized). Using the workaround in the patch linked above to inherit the Standard Rendering Parameters template should have no detrimental impact, and in fact is what the proper fix will likely look like.
This would be fixed in the next release (20.0.0)
Description
Rendering Parameters templates created during app deployment don't inherit from the 'Standard Rendering Parameters' template. This affects updating presentation details of a rendering for other fields, such as Datasource and cache parameters.
Expected behavior
Rendering Parameters templates created during app deployment should include the 'Standard Rendering Parameters' as a base template
Steps To Reproduce
Possible Fix
Your Environment
Screenshots