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

rogical’s picture

Status: Active » Closed (works as designed)

When you put blocks into panels, you should ofcourse use panels visibility rules to control it.

rogical’s picture

.

rogical’s picture

.

zil.arman’s picture

Status: Closed (works as designed) » Active

Thank 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.

ncherro’s picture

Hi 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

merlinofchaos’s picture

That's weird. I wonder how that code is affecting the visibility rules; they really should be totally unrelated!

zil.arman’s picture

ncherro,
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.

ncherro’s picture

Arman, sure - here's a link to the ticket in ctools: http://drupal.org/node/1797300

zil.arman’s picture

Status: Active » Closed (fixed)

ncherro, thank you!