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
Comment #1
Fa-sum CreditAttribution: Fa-sum commentedComment #2
Fa-sum CreditAttribution: Fa-sum commentedComment #3
Fa-sum CreditAttribution: Fa-sum commentedWorkaround found: adding something as "Empty text" in the view embedded (so under "Views") fixes the bug.
Greetings.
Comment #4
mrtorrent CreditAttribution: mrtorrent commentedsubscribe
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commented#3 is the currently accepted workaround to this.
Comment #7
Xomby CreditAttribution: Xomby commentedThis 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]
Comment #8
Tim Banks CreditAttribution: Tim Banks at Investis Digital commentedSurprisingly this issues still seems to exist. Fixed by the workaround in #3.