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

Allow usage of LLL in Templates.yaml #3

Open
lorenzulrich opened this issue Feb 9, 2021 · 0 comments
Open

Allow usage of LLL in Templates.yaml #3

lorenzulrich opened this issue Feb 9, 2021 · 0 comments

Comments

@lorenzulrich
Copy link

Feature Request

Is your feature request related to a problem? Please describe.

For international pages with an international editorial team, the backend needs to be fully translated. However, the YAML templates currently don't allow using the LLL: syntax in Templates.yaml and [item].yaml.

Describe the solution you'd like

Currently, the template settings (name, description, previewImage) are passed to the Fluid template as they are. There are several options:

  • Pre-process the configurations, detect LLL: syntax and use the LocalizationUtility to resolve labels before passing them to the frontend.
  • Use <f:translate key="{template.name}" default="{template.name}" /> in the template to make normal labels an LLL labels work. However, this is not a very clean solution.
  • Allow overriding the Fluid templates of the extension so the integrator can provide own templates fitiing the requirements.
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