Posted by scott859 on May 19, 2009 at 6:19pm
5 followers
Jump to:
| Project: | Simply Modern Theme |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Greetings,
When displaying a Panels page with "Disable Drupal blocks/regions" selected from the Panels "Advanced Settings" Simply Modern still displays the blocks/regions (the panel layout is only applied to the content area of the page). I've tested the pages in another theme (four seasons theme) and it correctly displays the Panels page (removing the blocks/regions when the Panels page has "Disable Drupal blocks/regions" selected).
Is there something that can be done to allow Simply Modern to remove the blocks/regions when the Panels setting is set to "Disable Drupal blocks/regions"?
Thanks for any help/insight you can give on this.
Scott
Comments
#1
Me too facing the same problem.
Very much trouble without working this.
#2
For this theme(for both 6.x-1.4 and 6.x-1.5),
Look at the function template_preprocess_page in includes/theme.inc.
Replace the line
if (!(!$variables['show_blocks'] && ($region == 'left' || $region == 'right'))) {
with
if (!(!$variables['show_blocks'] && ($region == 'sidebar_left' || $region == 'sidebar_right'))) {
it works fine.
#3
Great - thanks for your help on this!
Scott
#4
Its usefull and work, and not only for this theme. I tried to my custom theme (with custom region names) and this was the fix. Thanks
#5
Don't hack core! :)
Here's a less hacky solution:
http://jamestombs.co.uk/2010-12-04/disable-drupal-blocksregions-has-no-e...
#6