There are times, when we must display image, even if the default image is not provided.

In Drupal 7 under manage fields we have option to display default image, what is nice, but not always is the best approach, because, it will display default image everywhere where image field is used. There are times, we don't need default image to be displayed under node, and that's way:

 

I decided to write this tutorial, to help you out:

 

  • 1. Don't enable default image under image fields settings.
  • 2. Create a view containing image, filter results you would like the view display
  • 3. Under images settings open No result behaviour, add path to your custom image

 

Now, the the custom default image will be displayed in times, when no images is added to image field.