0

In Views (Drupal 9), how can I have the first group header be the row header and the second group header be a column?

Specifically, I'm looking for functionality similar to this module (only D7-dev) which provides the following results:

A HTML table with times as rows and rooms as columns

Source: https://www.drupal.org/project/tablegroup

Can we do this with a fancy view's TWIG template or do I need to alter the view results?

I've checked out:

2
  • I would probably use Views to group by Room, then second grouping by time, and use CSS grid to position everything to look like that table, but the problem is empty cells, you'd probably have to have some data- attribute for time or a class to be more in control of cell positioning. A twig template overriding the output by looping over all nodes and outputting table HTML is probably the best solution.
    – prkos
    Feb 7 at 21:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.