-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Using ${navigation_root_url} or ${portal_url} in Link type does not work #6624
Comments
Thanks for opening your first issue here! Your engagement is essential for open source projects, including Plone. 🤗 |
Consider also this issue: plone/plone.app.contenttypes#712. z3c.form is not used by Volto so not an issue here but the serialization should be ok (the Link containing ${navigation_root_url} or ${portal_url} is converted in REST API: plone/plone.app.contenttypes#711). |
@yurj, after you closed that other issue plone/plone.volto#176, I looked again and realized that this might be also a UX issue. I made the same mistake, reading the help text instead of looking at the icon that looks like an electrical diagram for internal links. It has I'd also suggest improving the help text, as this feature does not seem to support templating. If you agree, then we can add sub-issues to this issue. |
As you prefer, but overdocumenting issues can scare people. I mean, a problem is fixed when someone needs it to be fixed. I think the icon is OK because it is the one Volto uses to pick up items in Slate. I just was not used to it. I would change the help text and remove any reference to the template feature. IMHO, in the future, when someone will need it to work because of some project special needs, it will be implemented in the UI. |
It's a bit complicated because the help text comes from the schema from the backend, and the templating feature does work in Classic UI afaik. We can't simply replace the variables in the REST API, because then the replacements will also be seen when editing the link. So I think this probably needs to be handled in Volto in the LinkView (which is why I moved the issue here). |
How to reproduce:
The text was updated successfully, but these errors were encountered: