Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Is there a way to group a view using a taxonomy hierarchy in Drupal 8?
My taxonomy has three levels and I need to group each node under its relevant level. I'm then hoping to use the views accordion module to allow the users to open/close the top level.
So far I have been able to group by taxonomy but each taxonomy term is just in a flat list
Sorry for what probably is a very basic question. I am tasked with implementing a generic template as a Drupal theme from the ground up.
The template I'm working with consists of a set of scss files, javascript and some example html files.
Sorry I am novice here. Here is my first try to make my custom block programatically, but apache errol log sais:
PHP Fatal error: Class 'Drupal\\welcome\\Plugin\\Block\\Drupal\\Core\\Block\\BlockBase' not found in C:\\xampp\\htdocs\\drupal8\\modules\\custom\\welcome\\src\\Plugin\\Block\\welcome.php on line 16, referer: http://localhost/drupal8/admin/structure/block
the name of the module is welcome and my code is in welcome/src/Plugin/Block
I have an issue, not sure how to tackle it. I installed the pathauto module, it appeared to install ok, and work ok, set up ok, etc. however now, 3-4 hours later, when I visit the site (any page/URI) I get:
Interface 'Psr\Container\ContainerInterface' not found in
With a path to
[Mysite]/vendor/symfony/dependency-injection/ContainerInterface.php on line 26
I sorta understand the message, but I would appreciate any advice/direction/etc before I start trying to fix it.