Hello
I created custom blocks with views blocks. When the view is empty they still show the title of the view.
If I use the same block through the core block module it disappears as it should.
How can I make empty blocks disappear in DS?
Thanks
Achim
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1508090-3.patch | 491 bytes | swentel |
| #3 | 1508090-3.patch | 463 bytes | swentel |
Comments
Comment #1
creando sensaciones commentedI found out that my problem is not nessesarily caused by DC.
With a simple view block without arguments I got the correct behaviour.
The block which shows a title in DC but not through Core block even when empty is the default OG content view.
If somebody knows this behavious I would be happy about support. But I might find out by myself while testing arround. Will let you know.
Comment #2
creando sensaciones commentedI set this to bug report as I guess it is a bug of DS.
When the argument's "When the filter value is NOT available" is set to "Hide view" it is hiding with the core block module, but not with DS, where still the title appears.
When choosing 'Display contents of "No results found"' but leaving No results behaviour empty the block is also hidden in DS.
Comment #3
swentel commentedCan you test with the attached patch ?
Comment #4
swentel commentedActually, better patch
Comment #5
frega commentedCould not reproduce w/ latest views release and ds 1.5.
module_invoke('views', 'block_view', $delta) consistently returns NULL if the view is empty (no "No Results Behaviour" or e.g. Contextual Filter > "When the filter value is not available" > Hide view).
Comment #6
creando sensaciones commentedHello
I already changed my approach and do all display adaptation in the templates. So I uninstalled DS.
It has nothing to do with this bug. Was just a better way to achieve my goals. Thanks.
Achim