In Drupal 7, you can add headers and footers to blocks that will display even when the view generating them has no results.
Is there any way to use PHP to display text in on开发者_开发百科e of those areas when the view returns no results? The same thing expressed in pseudocode:
if view has no results:
echo "Custom message/code here"
View has such "No results behavior" built-in.
You can find than under "advanced" section.
精彩评论