Skip to content
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

Explain how to add custom body classes #1663

Closed
gforcada opened this issue May 13, 2024 · 1 comment
Closed

Explain how to add custom body classes #1663

gforcada opened this issue May 13, 2024 · 1 comment

Comments

@gforcada
Copy link
Sponsor Member

gforcada commented May 13, 2024

Description

At a project (Classic UI) we need to customize the body classes provided by Plone, depending on the context etc.

Turns out that Plone can do that ✨ see plone/plone.app.layout#368

Seems this is not documented, maybe it can go next to the color mode? 🤔

@gforcada
Copy link
Sponsor Member Author

Seems that it is already there 😅

from plone.app.layout.globals.interfaces import IBodyClassAdapter

@gforcada gforcada closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant