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
Comment #1
dsim CreditAttribution: dsim commentedMe too facing the same problem.
Very much trouble without working this.
Comment #2
dsim CreditAttribution: dsim commentedFor 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.
Comment #3
scott859 CreditAttribution: scott859 commentedGreat - thanks for your help on this!
Scott
Comment #4
lazly CreditAttribution: lazly commentedIts 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
Comment #5
bradweikel CreditAttribution: bradweikel commentedDon't hack core! :)
Here's a less hacky solution:
http://jamestombs.co.uk/2010-12-04/disable-drupal-blocksregions-has-no-e...
Comment #6
Corey Smith CreditAttribution: Corey Smith commented