Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have similar question with "Display a block even if it is empty" about blocks generated with views 3.5.

share|improve this question
Before I do a quick writeup, did you try playing with the NO RESULTS BEHAVIOR setting? It's under Advanced. I never use the blocks that views makes, so I am not 100% sure that it works in this case. – MPD Nov 30 '12 at 19:39
Your comment has the value of an answer ;) – Mohammad Ali Akbari Nov 30 '12 at 20:23
up vote 1 down vote accepted

Views has a somewhat hidden feature for setting the behavior when you have no results.

If you edit the view and click on Advanced, you will see some new settings:

enter image description here

Click on add next to NO RESULTS BEHAVIOR. You will then get a modal with a ton of choices. You should be able to use the textarea or markup options to plop in a   This should force the block to not be "empty". You could also set a message, etc.

You can also always show the advanced options if you visit admin/structure/views/settings

I typically always set "Always show the master display" and "Always show advanced display settings". There are some other useful settings on admin/structure/views/settings/advanced

share|improve this answer

In addition to the NO RESULTS BEHAVIOR, if you have a Contextual Filter, make sure that the default value is set when it is not available from the URL. Otherwise the view may be hidden.

For example, I had to update the "User Orders" view provided by Commerce and change the default value to the logged in user, instead of "hide view"

enter image description here

share|improve this answer

In addition to what @MPD and @andrewtweber said, you can add a header and footer that will appear when there are and are not results for your view.

Header/Footer for views

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.