my task is to show certain blocks in the right sidebar on all pages, except forum, and show the same blocks in custom panel on forum pages.
Previously it was working just great and what i did was:
1. i made a rule for those blocks: to hide them if path is - 'forum*'
2. i added those blocks into my custom panels (made with Panels module), which were shown on the forum pages.
I guess the Panels module somehow rewrote the blocks visibility rules...
But after last update - it doesn't work this way anymore.
Could you please help me with this task? What setting i should change to make it work the way it was?
Thank you!
Comments
Comment #1
rogical CreditAttribution: rogical commentedWhen you put blocks into panels, you should ofcourse use panels visibility rules to control it.
Comment #2
rogical CreditAttribution: rogical commented.
Comment #3
rogical CreditAttribution: rogical commented.
Comment #4
zil.arman CreditAttribution: zil.arman commentedThank you for respond, but i've tried Panels visibility rules - they do not help.
For example, for the 'Search form' on the Drupal's Blocks page i made a rule - "to show everywhere except - forum*". And in Panels setting for the same block i made a rule - "to show only on 'forum*' pages". But after last update - it doesn't work this way anymore. It seems like now Panels are ignoring it's own internal rules, but follow Drupal's common visibility setting for this block.
Comment #5
ncherro CreditAttribution: ncherro commentedHi there, I ran into this and just spent a few hours debugging it. It looks like the issue is actually coming from the ctools module.
If you comment out line 105 in ctools/plugins/content_types/block/block.inc, which invokes hook_block_list(), it prevents blocks from being hidden based on visibility rule settings from the Block configuration forms.
Line 105 looks like this:
drupal_alter('block_list', $block_info);
It's probably a bad idea to hack ctools, but it does fix this specific issue, and I don't see a workaround. I'll open up a ticket referencing this in ctools
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedThat's weird. I wonder how that code is affecting the visibility rules; they really should be totally unrelated!
Comment #7
zil.arman CreditAttribution: zil.arman commentedncherro,
Many thanks to you for your investigation!
To avoid duplicates of the issue - could you please put link to it here? So that everyone who faces the same problem can follow it.
Comment #8
ncherro CreditAttribution: ncherro commentedArman, sure - here's a link to the ticket in ctools: http://drupal.org/node/1797300
Comment #9
zil.arman CreditAttribution: zil.arman commentedncherro, thank you!