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.
On, for example, the Student Life landing page, I can post announcements/events.
However, because the block views which would list them, only list content of type 'Club', they're not displayed anywhere.
Not really sure how to approach this since there's no Views Or for Drupal 7. It would be nice to have all announcements etc together rather than in different blocks/pages. All I can think of is to make Student Life a club rather than an admin unit, and filter out nodes belonging to it from Views it shouldn't be listed in.
Comment | File | Size | Author |
---|---|---|---|
#5 | section_title_blocks-1536902-5.patch | 30.92 KB | lightsurge |
Comments
Comment #1
lightsurge CreditAttribution: lightsurge commentedActually, just discovered SQL ORing comes as standard with View 3 (nice!), so not so difficult after all ;-)
Comment #2
lightsurge CreditAttribution: lightsurge commentedRelated to #1535668: update various exportables to support dynamic details related to feature nodes (eg. clubs, teams, etc.)
Comment #3
jgraham CreditAttribution: jgraham commentedI should have addressed this as part of #1525612: Adjust top-level sections nodes to be administrative units I may have missed something in the views rework because the block display and contexts should have been reworked similar to what you describe in the initial issue.
Comment #4
lightsurge CreditAttribution: lightsurge commentedI did fix this but forgot to file a patch.. Just took altering the views filters to " Published AND ( [Clubs] OR [belonging_to_student_life_gid] ) "
Edit: For the sake of making sense - " Published AND ( [belonging_to_a_club] OR [belonging_to_student_life_gid] ) "
Comment #5
lightsurge CreditAttribution: lightsurge commentedThis patch
Comment #6
penguininja CreditAttribution: penguininja commented@lightsurge Awesome, thanks!
I've applied this patch and am making a few adjustments to avoid duplicate blocks. I'll probably be able to push these changes tomorrow morning.
Comment #7
penguininja CreditAttribution: penguininja commentedComment #8
penguininja CreditAttribution: penguininja commentedThis is set. Top-level groups now have "News" and "Events" blocks that display the appropriate content from that group *and* all content from the corresponding group type. I.e. the "Athletics Events" block displays events from the "Athletics" group and from all "Team" groups.
I'm still figuring out how to handle galleries, so I'll address that in a separate ticket.