Seems that only the "Default" panel style, allows empty panes to be "hidden" (not rendered).
If you try list or rounded corners to display a view pane, and it has no content, an empty box IS displayed.
If you use "Default" then the pane is NOT displayed (how it should be).
However, on Default, if you set a title in the view block settings, OR in the pane settings, then the title is shown (thus not hiding the empty pane).
Tried seeing in the code where this is handled.
Comments
Comment #1
wildmtsky commentedAny luck with this? I am trying to solve this also.
Comment #2
2ndChanceTech commentedunfortunately no solution to this.
It's a problem with all the styles, including tabs, rounded corners, and accordion.
I didn't think it would be that difficult of a fix, but I guess it comes down to time. I have tried to fix it, but unfortunately can't come up with a solution. It's definitely a usability issue.
Comment #3
merlinofchaos commentedThis is now fixed for Panels core style types in CVS for both D5 and D6. Note that tabs and carousel may need their own fixes.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
Erco commentedJust tried the last D5 5.x-2.x-dev release. But this did not fix that problem.
If it may helps, I applied the following patch to my currently installed 5.x-2.0-rc1a, in file rounded_corners.inc :
function theme_panels_rounded_corners_style_render_pane($content, $pane, $display) {
// Just stick a box around the standard theme_panels_pane.
$output = theme('rounded_corners_box', theme('panels_pane', $content, $pane, $display));
if (!$content->content) {
return;
}
else {
panels_add_rounded_corners_css($display, 'pane');
return $output; panels_add_rounded_corners_css($display, 'pane');
return $output;
}
}
Note that I perform a test on $content->content instead of $output as it is currently done for 5.x-2.x-dev release.
In my case (I intensivelly use views together with Panels), panes are no more displayed if no content is to be displayed.
Comment #6
samuelet commentedI can't get it to work with mini-panels.
Any idea?