By friendlymachine on
Hi,
Seems like it should be easy to hide an empty panel, but I'm having trouble with it. I'm talking here about a panel itself, not the pane, which is easy to handle. If a panel doesn't have content assigned to it, it still print the empty markup to the page. I'd like to stop it from doing this and write a new class to the body to allow my layout to adapt accordingly. I've gotten close, but can't seem to get all the way there.
Any ideas? I'm really stuck.
Thanks!
John
Comments
Any ideas, guys?
I've tried various hooks and templates, no dice. Would be grateful for any pointers.
~John
John Hannah
Friendly Machine
_
As far as I know, you'll need to create a custom layout even if it's really just a dupe of an existing one with the if test for blank panels. But without knowing what you've tried, its hard to make a recommendation.
EDIT:
just found: #2025043: Flexible layout: hide an empty region/row/column if empty -- might be worth a try.
Thanks...
I'll give that a try. Was looking for a hook or something but came up empty. Much appreciated.
John Hannah
Friendly Machine