When I try to edit a page to upload 2 documents, I get an error.
Procedure: I edit the node, upload the first document. Then I insert a new field to upload the second document. However, the second field does not appear and I get the following error message in dblog:
"Twig\Error\LoaderError: Template "themes/bootstrap_sbv/layout/sbv-personenseite-layout.html.twig" is not defined. in Twig\Loader\ChainLoader->getCacheKey() (line 10 of webpath/docroot/modules/ds/templates/ds-entity-view.html.twig).
I have tried to include the layout in the "ds-entity-view.html.twig" file.
{% include "/themes/bootstrap_sbv/layouts/sbv-personenseite-layout.html.twig" %}
But it doesn't work.
Curiously, everything works on the local environment. Only on the test and production environment I get the error. I have a custom theme on my Drupalsite.
{% include '/theme/my_theme/dummy...' %}
you can use a module's or theme's machine name as namespace{% include '@my_theme/dummy...' %}
- this way you are safe if your modules/themes are split in.../contrib/...
(from drupal.org) and.../custom/...
(own code) sub-folders – Hudri Jan 23 '20 at 11:11{% include "@bootstrap_sbv/layouts/sbv-personenseite-layout.html.twig" %}
but get the following errorTwig\Error\LoaderError: Template "@bootstrap_sbv/layouts/sbv-detail-page-layout.html.twig" is not defined in "modules/ds/templates/ds-entity-view.html.twig" at line 1. in Twig\Loader\ChainLoader->getCacheKey() (line 142 of /webpath/docroot/vendor/twig/twig/src/Loader/ChainLoader.php).
– Zeroplexer Jan 23 '20 at 13:01/templates
subfolder of your theme/module. – Hudri Jan 23 '20 at 14:53