You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Plone 5.2 the Resource Registriese control panel had a tab 'pattern options' where you could set default options for the mockup patterns. This tab is gone in Plone 6.0
Is there any other location/way how I can set these options in code or in the theme? Then we should add them as documentation.
In this particular instance I wanted to set the closing options of data-pat-modal so it doesn't close with a click outside the modal. (related to debugging plone/mockup#1340)
The text was updated successfully, but these errors were encountered:
To answer my own question partly: plone.patternoptions and IPatternsSettings still exist and are still prefilled with the same default values as in Plone 5.2 But you can now only edit them through the configuration registry and added the dict directly.
We have to re-create it. But instead of doing a react-pattern based controlpanel which lives in Mockup I'd create it like the others in Products.CMFPlone.controlpanel.
I did look a bit into getting it done via schema generated control panels others but didn't come far yet. plone.base.interfaces.patterns.IPatternSettings doesn't define a schema.
It doesnt have to take a lot of time to recreate the control panel as we only need to expose a list/dictionairy from the registry. In an add'ons we created this control panel registration with a direct link to the registry edit:
There is another more generic issue with this solution: the dictionary editing modal is currently broken, delete section or edit section closes the modal without doing anything. (sorry for the Dutch screenshot)
In Plone 5.2 the Resource Registriese control panel had a tab 'pattern options' where you could set default options for the mockup patterns. This tab is gone in Plone 6.0
Is there any other location/way how I can set these options in code or in the theme? Then we should add them as documentation.
In this particular instance I wanted to set the closing options of data-pat-modal so it doesn't close with a click outside the modal. (related to debugging plone/mockup#1340)
The text was updated successfully, but these errors were encountered: