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

scroogie’s picture

As the gallery is a usual drupal node, you can get node_load() the gallery node and access those properties.

justintime’s picture

If you're using views, the parent gallery relationship will give you access to all that as well.

igorik’s picture

@scroogie: But How can I find parent gallery nid for concrete image? I suppose that there is some context for it.

justintime’s picture

$gallery = node_load($image->gid);
dddave’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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