Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have two content types assignments and projects
and i need a view like this
Assignmnt1 | Assgnment2 | Project1 | |
---|---|---|---|
student | A | B | C |
student2 | A | A | C |
Here the Column headers are not content titles,They are node reference fields.Can I have two fields as Column header,Then i think my problem will be solved.If you can guide me I will write the code for this.Now I am a bit confused.
Comments
Comment #1
ktrev CreditAttribution: ktrev commentedComment #2
ktrev CreditAttribution: ktrev commentedComment #3
mradcliffeNo, that wouldn't be supported out of the box.
I think you would need to make the column header refer to a common field, and then rewrite the value in an overridden template_preprocess_views_matrix that adjusts the $headers array with new values (same keys).
I have had done a similar type of table in custom code, which is very complex so I think that gradebook is a common problem.
You may try Views Flipped Table.