-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Modular content with missing template file ending up using non-modular template #3218
Comments
As a side effect, every non-existing template is being replaced with When working on a discourse question about switching themes, it took me a while to figure out why a non-existing template was displayed using I think issues with non-existing templates should not be hidden and |
It's not possible to do that as twig doesn't tell us where the file comes from. So if it's inside a lookup path, it gets picked up. |
IMHO a missing template is an unexpected exception which the developer/admin should be notified about in an early stage. Currently the exception is buried which is confusing and makes the issue hard to detect. |
I tend to agree, but we cannot do that because many sites rely on showing default template with custom filenames. What we could do, though, is to make this a configuration option. Maybe you should create a new issue about it? |
See #3453 |
If a modular template file is missing, Grav ends up using the default page type, thus replicating the whole HTML multiple times inside the document.
The text was updated successfully, but these errors were encountered: