J'ai créé un include
dans Drupal:Twig_Error_Loader: modèle n'est pas défini - Drupal
{% include directory ~ '/partials/header.html.twig' %}
mais je reçois cette erreur:
Twig_Error_Loader: Template "themes/custom/mytheme/partials/header.html.twig" is not defined (Drupal\Core\Template\Loader\ThemeRegistryLoader: Unable to find template "themes/custom/mytheme/partials/header.html.twig" in the Drupal theme registry.) in "themes/custom/mytheme/page--front.html.twig" at line 1. in Twig_Loader_Chain->getCacheKey() (line 115 of vendor/twig/twig/lib/Twig/Loader/Chain.php).
Selon la documentation Drupal et Brindille, Je le fais de la bonne façon. J'ai un répertoire appelé partials
et un fichier appelé header.html.twig
.
Qu'est-ce que je fais mal? Je cours Drupal dans MAMP et OSX, El Capitan. Drupal 8.3.7
Salut avez-vous vider votre cache? –
Oui, plusieurs fois! – Labanino
Pouvez-vous ajouter sur le sujet la version de drupal plz. Et avez-vous joint votre thème au registre, est-ce un nouveau module ou avez-vous remplacé les fichiers de base? –