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

Creating and Renaming of Templates #7075

Open
gww-its opened this issue Apr 2, 2024 · 0 comments
Open

Creating and Renaming of Templates #7075

gww-its opened this issue Apr 2, 2024 · 0 comments

Comments

@gww-its
Copy link

gww-its commented Apr 2, 2024

Affected version(s)

5.3.3

Description

First creating of an new Twig Template is not written in the correct subdirectory. A "Text-Twig-Template" should be saved in templates/content_element/text but is saved in the directory templates/content_element. This is then not offered for selection in the article. You have to move it to the templates/content_element/text directory.

Next the renaming of a template is not directly shown in the "Article".
Only by saving the theme, the new template is offered for selection in the article again.

If you rename a used template, it leads to an error in the backend.
Twig\Source::__construct(): Argument #1 ($code) must be of type string, false given, called in /var/www/vhosts/hosting197944.ae90f.netcup.net/hosting197944.ae90f.netcup.net/vendor/contao/core-bundle/src/Twig/Loader/ContaoFilesystemLoader.php on line 108
Saving the Theme without any change in the theme, makes the error disappear. But it leads to an "Unknown Option" in the Article.

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

1 participant