-
Notifications
You must be signed in to change notification settings - Fork 15
Handle null vs undefined for footer colophon text #678
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
base: main
Are you sure you want to change the base?
Conversation
sneridagh
left a comment
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.
@danalvrz I don't know why it's not working, I think the condition is wrong.
@davisagli your proposal didn't include the default value being set?
@sneridagh Can you make a complete report, what steps you did and what you expected? OR @danalvrz Can you provide instructions on how to test it?
@sneridagh This component has a fallback where it renders "Powered by Plone and Volto Light Theme" along with a copyright and logo. If we add a default value in the backend, then the copyright and logo will never be shown. |
It is already implemented that way then, but there is no case in which the colophon could be removed. Is the change needed then to set the default colophon as "Powered by Plone and Volto Light Theme" without the Plone logo? |
davisagli
left a comment
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.
I tested and it's working like I expected:
-
with no VLT backend (I started the backend using
make backend-docker-startfrom the volto repository): it shows "Powered by Plone and Volto Light Theme" along with the copyright and logo. -
with VLT backend and empty "Footer colophon text" -> it shows nothing
-
with VLT backend and a value for "Footer colophon text" -> it shows this text
The one further change we could make is that if we want to still show "Powered by Plone and Volto Light Theme" by default when the VLT backend is installed, we can add it as the default here: https://github.com/kitconcept/volto-light-theme/blob/main/backend/src/kitconcept/voltolighttheme/behaviors/customizations.py#L258 ..this should only take effect for newly created sites.
9148ada to
15471b8
Compare
|
@davisagli @danalvrz getting back to this, I would do what David suggested, and add a default for newly created sites, so with a fresh VLT installation, it does show something. However, this would be a breaking change: in the conference site, it won't show once they upgrade the site to VLT8. It should be noted properly in the docs. |

No description provided.