The image blocks module seems extremely useful and I'd like to use it to display an image in my header that serves as a masthead for the site. For example, when someone is on a page that has the 'wildlife' taxonomy, they'll see an image at the top that matches this category.

However, what I'd like to do is have a default image that is used if there isn't a term associated with the page. So if the user is on any page that doesn't have a term, they'll see a generic image in its place. I'd be okay with simply going through and assigning a term to every page in the site, but some (particularly ones that are generated by drupal) don't allow you to edit or set a taxonomic term. Is there any way to do to set a default image?

Comments

nancydru’s picture

Status: Active » Fixed

There is a setting on the settings page for a default image. #309000: Possible to have a default image?

glend’s picture

Thanks for the quick reply, but that doesn't solve my issue; as I understand it, this default image kicks in if the page has a term, but the term has no image. What I want is a block that will appear even if the page has no term associated with it. So that every page will always have a block that has an image in it, and this image will change if there's a taxonomic image associated with it.

glend’s picture

Okay, I figured out a workaround for this:
Rather than using the default block, I created a block view that has the Taxonomy Image as a Field, Taxonomy Term from Current Node as a Filter, and then the default image as an HTML tag in the Empty Text Field.

nancydru’s picture

If there is no term associated with the content, the block does not get triggered. This is core behavior, so I cannot help. I'm glad you got Views to work for you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.