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.
Hi again,
I would like to use the 2 sidebars on front page but only the right one on content pages ; the left sidebar would collapse so that content would take up the left part of screen (75 % wide). Would it be possible ?
(beautiful theme, indeed... thanks !)
Comment | File | Size | Author |
---|---|---|---|
#6 | ninesixtyrobots_collapsible.patch | 1.66 KB | quicksketch |
Comments
Comment #1
DerTobi75 CreditAttribution: DerTobi75 commentedHi,
this feature would be really great! Any chance to get this done?
Regards,
Tobi
Comment #2
jjeff CreditAttribution: jjeff commentedI take a crack at this when I get a chance.
In the meantime, if anyone wants to submit a patch, I think this would be a great feature to get in.
Comment #3
frankydp-1 CreditAttribution: frankydp-1 commentedI have a fix for this that requires a change to page.tpl
This change will make it "pseudo" float right. Not really changing the float but expanding the main div if sidebar-left is not populated.
You could probably write an if statement straight into the class id of one copy of the main div, would be cleaner.
Double check my code I might have changed something else small to facilitate formatting and styling for myself.
page.tpl.php
Original code.
Replacement
Comment #4
kirin CreditAttribution: kirin commentedHey, this worked great!
Nice work, man. Thanks. Now both my admin section and my forums section don't have column-breaking going on.
Comment #5
quicksketchI'm working on fixing this in a more permanent manner. Thanks frankydp for your suggestion!
Comment #6
quicksketchI've committed the attached patch which makes both sidebars optional, the layout should expand as needed with one, two, or no sidebars.