-
Notifications
You must be signed in to change notification settings - Fork 70
Pages not inheriting Drupal content #331
Comments
That would depend on the content of your |
Sorry ... I haven't changed it from what was included with Emulsify ... |
Okay, the
(Or If you |
I guess perhaps another question would be ... since the included 05-pages/article/article.twig and 05-pages/home/home.twig use embed are we even supposed to use those in Drupal? Should I instead be modifying/copying/extending the 04-templates/_default.twig in my custom page.html.twig files? Are the article and home examples more for demoing those templates populated inside pattern-lab? |
That is correct. The All of the Drupal page-level templates should include or embed a file from the I just looked and realized that's not how Emulsify is out of the box, but in my projects, the That's a practice I've settled on after implementing this on a bunch of sites. We should probably update stock emulsify to reflect that as well, but you know... time... 😄 |
Thanks! Is your page file still essentially ... https://github.com/fourkitchens/emulsify/blob/develop/components/_patterns/05-pages/_page.twig ... or some customized version of that? I have need in a certain section of my project to modify that template, so I'm going to create a separate template for that. And yeah ... fully understand the time issue. I've enjoyed working with Emulsify thus far and this series ... https://www.fourkitchens.com/blog/development/introducing-emulsify-part-3-drupal-integration/ ... has been helpful ... it's just this last hump to the top level of pages in Drupal that is tripping me up at the moment. Maybe part 4 of that series? :-) |
If I change /templates/layout/page.html.twig from:
{% include "@pages/_page.twig" %}
... to ...
{% include "@pages/article/article.twig" %}
... my site header and footer do not load their Drupal content. Everything looks fine in Pattern-Lab, but not in Drupal.
What am I missing? Thanks!
The text was updated successfully, but these errors were encountered: