Hi,
I am trying to use a view with a flipped table within quicktabs and would like the tab to not display at all, when the views is empty. This is working fine when I set the view to display as a regular table.
When I set the view to a flipped table though, the tab still shows even though the fields are not holding any data. I have set everything to not display when empty and even installed filters for every field in the view ("not empty") but with no luck. So I assume the view still does display some kind of markup or similar which leads e.g. quicktabs to the assumption that the view is not empty.
I might be completely wrong though - that's just an idea from a beginner.
But in case this is true: Can this behaviour be avoided somehow?
Thanks in advance for any help.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1587862-empty-view-not-empty-5.patch | 798 bytes | naught101 |
Comments
Comment #1
joachim commentedHave you checked the actual markup that comes out of the tab? Check the flipped table TPL file for any obvious problems.
Can you also check the markup that the same view result provides as, say, a page, both as a regular and flipped table?
Comment #2
pbrough commentedThe TPL file will always provide a result, even if it is an empty table.
I have added some extra checks to the template to test if the rows contain any information before the table mark up.
I have included the complete template file here.
Hope this helps
Phil
----------------------------------------------------
Phillip Brough
Percontor Experiential Design
Comment #3
joachim commentedThanks for investigating.
Any chance you could post your change as a patch?
Comment #4
naught101 commentedComment #5
naught101 commentedThe change is apparently against 6.x-1.0-beta2, and the patch against 6.x-1.x is attached.
I'm not seeing this behaviour in 7.x at all though. Going to close.