I'm using a view to display teasers of a particular content type, then, when the full node is displayed, I'm using views slideshow to display a right block/slideshow. But since I'm not requiring an image in the content type, when there is no image, the right block (which is in this case empty because no image was added) is still displayed, opening up the right block region, and I would much prefer in this case that the block simply not "appear" leaving the right region collapsed.

I hope this makes sense.

In short, is there a way using the filter in the view or some other method to not display the block when there is no image used in the field image content area?

I realize I can manually hide the block using the block display and node id, but that would require that I inspect every new piece of content to see if it used an image or not.

Comments

redndahead’s picture

Status: Active » Postponed (maintainer needs more info)

Yeah you can add a filter for your image field and make sure it is not null. I hope this answers your question.

royerd’s picture

Well, I believe I understand the general concept here, but the only fields available related to this image field are image delta and image list.

I guess I don't know what either one means.

When I look at the delta field options, the only operator is "Is equal to" and I don't see a way to make that "is not null."

Am I on the right track?

UPDATE: OK. I got it. I see in the database that the field "list" is 1 where there is an image and NULL where there is no image and I guessed that this meant TRUE and FALSE and filtered in image list = TRUE.

Thanks for your help . . .

Dan

redndahead’s picture

Status: Postponed (maintainer needs more info) » Fixed

Awesome marking as fixed.

Status: Fixed » Closed (fixed)

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

theRuslan’s picture

Great idea, tnx!