IClassicUISchema: Add new control panel. - #87
Conversation
|
@thet thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment: To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
|
Please add the open docs PR to this PR description, if it means an update to them. plone/documentation#1961 |
davisagli
left a comment
There was a problem hiding this comment.
Hmm, now I'm realizing that this probably really belongs in plone.app.layout or plone.classicui, since it's not relevant to Volto.
But, in the interest of trying to get things finished, I guess we can add it here. We'll have to update https://github.com/plone/volto/blob/main/packages/volto/src/config/ControlPanels.js#L60 to keep it from appearing in the site control panel in Volto.
stevepiercy
left a comment
There was a problem hiding this comment.
Text LGTM. Let's get a technical review, too.
|
@davisagli maybe this makes everything more complicated but I have now implemented a It is exposed in plone.app.theming, the place where it best fits to and a control panel which is not used in Volto. What do you think about this? |
Add new ``IClassicUISchema`` control panel schema with its ``plone.use_ajax_main_template`` setting. When ``plone.use_ajax_main_template`` is enabled, and if we are in an XHR request, Plone uses the AJAX main template. Note: This setting does not affect the ``ajax_load`` query string parameter, which if set and evaluates to ``true``, will always trigger the AJAX main template.
IClassicUISchema: Add new control panel.
Add new
IClassicUISchemacontrol panel with it'splone.use_ajax_main_templatesetting.When
plone.use_ajax_main_templateis enabled, and if we are in an XHRrequest, Plone uses the AJAX main template. Note: This setting does not affect
the
ajax_loadquery string parameter, which if set and evaluates totrue, will always trigger the AJAX main template.Related PRs
plone/Products.CMFPlone#4169
plone/plone.app.layout#405
#87
plone/plone.app.theming#265
plone/plone.app.upgrade#345
plone/buildout.coredev#1036
plone/buildout.coredev#1037