-
-
Notifications
You must be signed in to change notification settings - Fork 2
IClassicUISchema: Add new control panel. #87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor polish. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
IClassicUISchema
control panel with it'splone.use_ajax_main_template
setting.When
plone.use_ajax_main_template
is enabled, and if we are in an XHRrequest, Plone uses the AJAX main template. Note: This setting does not affect
the
ajax_load
query 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