University-of-Denver / drupal-composer-managed

Pantheon platform's standard Drupal upstream, and recommended starter template for custom upstreams.
0 stars 0 forks source link

Get current pl_dupal theme working in D9 environment #2

Open kreynen-du opened 2 weeks ago

kreynen-du commented 2 weeks ago
Twig\Error\LoaderError: Template "@templates/page.twig" is not defined in "themes/custom/pl_drupal/templates/page.html.twig" at line 6. in Twig\Loader\ChainLoader->getCacheKey() (line 98 of /code/vendor/twig/twig/src/Loader/ChainLoader.php).

I believe the pl_drupal theme requires https://www.drupal.org/project/components

Themes have been able to declare dependencies since 8.9, but the pl_drupal theme doesn't list any module dependencies.

The way @templates is defined in https://github.com/University-of-Denver/drupal-composer-managed/blob/2-get-current-pl_dupal-theme-working-in-d9-environment/web/themes/custom/pl_drupal/pl_drupal.info.yml#L21 looks like how the Components! module works, but there also https://github.com/University-of-Denver/drupal-composer-managed/blob/2-get-current-pl_dupal-theme-working-in-d9-environment/web/themes/custom/pl_drupal/config/config.yml#L47

kreynen-du commented 2 weeks ago

In addition to https://www.drupal.org/project/twig_field_value, the theme is calling javascript like that aren't included in the theme... but are installed in /libraries

Need to add https://www.drupal.org/project/foundation_sites and https://get.foundation/sites/docs/motion-ui.html to the theme