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.
Hi
I would like to write on image node, some other info:
1. info from which gallery the image is. You have there link Back to gallery, what is nice but not very explaining. The gallery title is for sure good information for visitors.
2. link to user entire gallery (e.g. Look at all galleries from this user)
How it could be done? If it possible, is there some context for the gallery image with some like this information or is it possible to call some functions which will return these informations?
thanks
Igor
Comments
Comment #1
scroogie CreditAttribution: scroogie commentedAs the gallery is a usual drupal node, you can get node_load() the gallery node and access those properties.
Comment #2
justintime CreditAttribution: justintime commentedIf you're using views, the parent gallery relationship will give you access to all that as well.
Comment #3
igorik CreditAttribution: igorik commented@scroogie: But How can I find parent gallery nid for concrete image? I suppose that there is some context for it.
Comment #4
justintime CreditAttribution: justintime commentedComment #5
dddave CreditAttribution: dddave commented