Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
cgmonroe CreditAttribution: cgmonroe commentedI 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.
Comment #2
iantresman CreditAttribution: iantresman commentedThanks for the lead. In case anyone is interested, here is the link:
and the following may help:
Comment #3
Crell CreditAttribution: Crell commented