Closed (works as designed)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2011 at 19:07 UTC
Updated:
5 Apr 2011 at 01:34 UTC
I noticed that blocks added to a panel page are missing certain behavior, specifically the DHTML Menu markup that allows to open/collapse submenus.
By adding the following line into ctools_block_content_type_render right before the block is returned (line 123) this can be fixed
module_invoke_all('preprocess_block', array('block' => $block));
Comments
Comment #1
merlinofchaos commentedHmm. That preprocess is about block theming.
If you then choose the 'block' style, that code will run twice, which could be bad.
It's an interesting dilemma, I'm not sure the right solution just yet.
Comment #2
jhm commentedI was worried about that as well. And of course I did not check into the block style. Setting it to System Block does exactly what my crappy little patch does :(
There are other modules that try to muck with blocks (block_refresh for example) which don't fire, even if the style is System Block ... different case, though
I think this particular issue should be closed, however, since the desired effect can be achieved by setting the block style.
Comment #3
jhm commentedI am closing this because I believe ctools works as designed