Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/6.0.x Date: 2024-12-06T06:32:22+01:00 Author: Peter Mathis (petschki) <[email protected]> Commit: plone/Products.CMFPlone@2d0e821 Allow bundles to be rendered after all other. JS and CSS resources can now be rendered after all other resources in their resource group including the theme (e.g. the Barceloneta theme CSS). There is an exception for custom CSS which can be defined in the theming controlpanel. This one is always rendered as last style resource. To render resources after all others, give them the "depends" value of "all". For each of these resources, "all" indicates that the resource depends on all other resources, making it render after its dependencies. If you set multiple resources with "all", then they will render alphabetically after all other. This lets you override a theme with custom CSS from a bundle instead of having to add the CSS customizations to the registry via the "custom_css" settings. As a consequence, theme customization can now be done in the filesystem in ordinary CSS files instead of being bound to a time consuming workflow which involves upgrading the custom_css registry after every change. Co-authored-by: Johannes Raggam <[email protected]> Files changed: A news/4054.feature M Products/CMFPlone/resources/browser/resource.py M Products/CMFPlone/tests/testResourceRegistries.py Repository: Products.CMFPlone Branch: refs/heads/6.0.x Date: 2024-12-06T08:13:28+01:00 Author: Peter Mathis (petschki) <[email protected]> Commit: plone/Products.CMFPlone@33b2788 Merge pull request #4077 from plone/petschki-deferred-resourcegroups-60 Implement resource bundle depends on `all` to be rendered at last (6.0 branch) Files changed: A news/4054.feature M Products/CMFPlone/resources/browser/resource.py M Products/CMFPlone/tests/testResourceRegistries.py
- Loading branch information