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

CommentFileSizeAuthor
#4 1508090-3.patch491 bytesswentel
#3 1508090-3.patch463 bytesswentel

Comments

creando sensaciones’s picture

I 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.

creando sensaciones’s picture

Category: support » bug

I 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.

swentel’s picture

Status: Active » Needs review
StatusFileSize
new463 bytes

Can you test with the attached patch ?

swentel’s picture

StatusFileSize
new491 bytes

Actually, better patch

frega’s picture

Status: Needs review » Closed (cannot reproduce)

Could 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).

creando sensaciones’s picture

Hello
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