Disable right sidebar for panel pages
chlobe - March 22, 2009 - 23:12
| Project: | Marinelli |
| Version: | 6.x-2.92 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi
Is there any way to disable the right sidebar for panel override pages - I don't need to completely remove the right sidebar black through page.tpl as it is needed on other content types. However I have extensive use of panel pages for a range of content and the right sidebar leaves a blank space instead of the panel page extending across 100% width.
Any help would be greatly appreciated.
Cheers

#1
sorry, obviously mean 'block' not black.
Cheers
#2
you basically have the option to disable both sidebars , not only the right sidebar as far i know . But this wont be a problem since you can create a panel with any sidebar you want and attach any blocks to it...hope this helped
#3
Hi pan0s
I appreciate the response, cheers, but I think I am missing something - I don't see any option to disable the right sidebars in the theme settings and in the panel pages I have created I have selected the disable Drupal blocks and regions. End result is that I still have a rightsidebar with no content.
regards
#4
Chlobe
you dont really have to 'touch' your theme settings at all. U just have to check the disable drupal blocks/regions under the advanced tab when you create the panel page overide ( i assume that your overide settings are correct) . Of course you must also select a preferable layout and in the content tab assign content to each of the panel regions.....have u followed any kind of tutorial for this??
#5
Hi pan0s, thanks for your reply - the panels override settings are correct and I have selected 'disable drupal blocks' in the advanced settings for the panel. Regardless of the panels layout chosen the right sidebar space is left.
I did resort to copying the theme, disabling sidebars and changing the page default size via CSS.
Cheers
#6
I presume this issue was answered and resolved based on the comment #5.
Disabling the drupal blocks did make the sidebars disappear for me using a different theme.
#7
The Panels setting does indeed disable the sidebars. However, it leaves an empty space because by default the width of the content area without any sidebars (the same as with only one sidebar, I believe) is only 745px. I changed this in the css by setting in layout.css
.long { width: 940px }... which seemed to work fine, until someone pointed out that in IE, the panes that I have on the right appear underneath the content, as if the sidebars were still there. Has anyone else had this problem? How did you change the css, chlobe?
#8
+1 to this. This is a fabulous theme, but it'd be really cool if, when I disable the blocks, the panel expands to the full width of the window. Do we need a third option?
#9
I've added this:
.wide{width:100%; /* otherwise go wide... :) */
}
to layout.css and changed this:
if (!$right) {$width = "long";
}
to
if (!$right) {$width = "wide";
}
in template.php. So, it worked nicely in Opera 10, but i don't know what about the others.
#10
Looks good, Guide. I'll give it a whirl.