Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
There's a lot of contexts where the left sidebar is blank, mainly when
- displaying a node that doesn't belong to a group,
- displaying a view
In the case of (1), perhaps it might work to either theme out the sidebar when it has no content, or an easy filler would be to have a few blocks in there, just recent content like the group node blocks.
In the case of (2), it seems that group views should have the same blocks on them as do group nodes? With non-group views could again either theme out the sidebar when no content, or have recent content block from other content types (i.e. events on announcements / announcements on events).
Comment | File | Size | Author |
---|---|---|---|
#2 | blank_sidebar-1515116-2.patch | 1.24 KB | lightsurge |
#1 | leftsidebar.png | 8.93 KB | lightsurge |
Comments
Comment #1
lightsurge CreditAttribution: lightsurge commentedforgot to add screenshot
Comment #2
lightsurge CreditAttribution: lightsurge commentedPatch below gets rid of the left indent in region-content-wrapper when sidebars are empty. A node would probably look better with some blocks in the sidebar, but doesn't hurt to get rid of the space when there's nothing to fill it?
Comment #3
jgraham CreditAttribution: jgraham commentedComment #4
penguininja CreditAttribution: penguininja commentedWe've been working on eliminating the pages without a sidebar to at least include some helpful empty text. In particular, the meta feature sets to enable calendar and news blocks for all Athletics groups, Department groups, etc. hit a lot of these pages.
I'd rather not theme away the empty sidebar, as I'd like to find some relevant sidebar info for every page, defaulting to sitewide news and events. I'll add these default blocks as soon as I get a chance.
I'd love for these views to show the relevant group content; I'll look into how to make that happen, as those view pages do not get the group context needed to trigger those block.
Comment #5
penguininja CreditAttribution: penguininja commentedFor nodes not in a group, we'll be using general blocks (e.g. all news, all events, etc.). That currently depends on fixing the "not in any group" setting on context_og, ticket #1505248: Not in any group checkbox not working as expected.
For views that have a "group affiliation," we'll be writing some custom code to give those pages a group context, i.e., pages like /announcements/8 should get the gid=8 group context. Assigning this ticket to Jeff.
Comment #6
jgraham CreditAttribution: jgraham commentedFixed the "group affiliation" pages for calendar/GID and announcemnts/GID in commit e2c1eab
I think in combination with #1505248: Not in any group checkbox not working as expected this ticket is addressed.