I've attached a gallery of images to a node of type artist. How can I hide, or not display a node, whose attachment is empty (in this case, there are no images to display). ie. I want to show all artists which have images, but hide all artists which have not images to show.

Comments

cgmonroe’s picture

I think you may need to look at the various "backreference" modules... nodereferrer might be a good starting point. This would let you have a field in your "artist" node that lists all "artwork" nodes that refer to it. Then you could probably filter your artist list by this.

iantresman’s picture

Thanks for the lead. In case anyone is interested, here is the link:

Crell’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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