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

Use attrs().mergeWith() in Twig code examples #1361

Open
m-vo opened this issue Mar 6, 2024 · 2 comments
Open

Use attrs().mergeWith() in Twig code examples #1361

m-vo opened this issue Mar 6, 2024 · 2 comments

Comments

@m-vo
Copy link
Member

m-vo commented Mar 6, 2024

We need to adjust the Twig code examples regarding the set and merge pattern to reflect the changes made in contao/contao#6956 (comment).

Basically attrs(foo).<operations>attrs().<operations>.mergeWith(foo) .

@fritzmg
Copy link
Contributor

fritzmg commented Nov 1, 2024

I started working on this but now I am not sure anymore that this is what we want. Or at least not everywhere. If you create a new template for your new content element for example, then yes. But when you overwrite a template in your App, then no? (Or it simply does not matter then?)

@m-vo
Copy link
Member Author

m-vo commented Nov 1, 2024

Technically, it would only matter in your app if you are using themes. Because then, a theme template can also adjust your app template… And if you mean @Contao_App (contao/templates) by app, then also every backend admin that can adjust templates could adjust the "app" templates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants