By UnicornSong on
Hi. I have two blocks (created by view) which i shall call block A and block B (for their anonymity).
Both of these blocks are currently set to be shown at the top of the home page.
I need to only display block B if the view for block A returns empty.
Can someone point me in the right direction to do this please?
Comments
Views Functionality
You could try putting something in the "Empty Text" Area in your View. If the other block is also generated by a View, You could use the code snippets on this page along with the PHP input filter. There may be a better way, but right now, this is the only way I'm aware of for doing this.
Thanks!
Thanks heaps daniel, I was totally barking up the wrong tree in the directions I was heading.
Learnt some new stuff today :) (I always wondered about the practical uses of the empty text field)