I created a Panel, then I inserted into "Content" a Block from Views set to work as a Glossary.
"Views" lists the nodes sorted alphabetically, filtered with A-Z links set as header (always in Views). "Display even if view has no result" is checked and all goes as it should if the view is used alone.

When I embed this view (as block) in a page created with "Panels", all goes well when the view is not empty (so it has results corresponding to the Glossary). However, when there is no result (no nodes matching the chosen letter), the Header set in Views is not shown as it should, but nothing appears.
I tested that the view I created works perfectly. The problem seems to be with Panels, not considering the Header.

How to do?
Tell me if you need more information.
Many thanks in advance for your help and for your job.
Greetings.

Comments

Fa-sum’s picture

Title: Embedding an empty views' block the header (set in views) doesn't show » Embedding an empty views' block, the header (set in views) doesn't show
Fa-sum’s picture

Title: Embedding an empty views' block, the header (set in views) doesn't show » Embedding a views' block, the header (set in views) doesn't show if the view is empty
Fa-sum’s picture

Workaround found: adding something as "Empty text" in the view embedded (so under "Views") fixes the bug.

Greetings.

mrtorrent’s picture

subscribe

merlinofchaos’s picture

Status: Active » Fixed

#3 is the currently accepted workaround to this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Xomby’s picture

Title: Embedding a views' block, the header (set in views) doesn't show if the view is empty » Adding view to panel page, view's header (set in views) doesn't show if the view is empty
Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Closed (fixed) » Active

This is still an issue in 7.x, and there is little information regarding the "accepted workaround" and/or how to make that work.

There's a checkbox in views (for the header item) that states "show even if the view is empty", so this checkbox should also be considered by panels for display.
[note - updated title for issue clarity]

[edit]
"Workaround" which works, but is utterly unacceptable, is to set a "no results behavior" for EVERY variation of every view JUST IN CASE it comes back empty, this way it shows the header.
(right side "advanced" menu, no results behavior, add a global text area and leave it empty or put something like "nothing to see here folks" within)
[/edit]

Tim Banks’s picture

Surprisingly this issues still seems to exist. Fixed by the workaround in #3.