Ok, here's how I would do it:

- Let's use "nodeGalleryImage" and content type "page", with field_test_noderef in "page" where referenceable types is "nodeGalleryImage".
- Load 2 immage: nodeGalleryImage 1 and nodeGalleryImage 2.
- Create 1 "page": page 1, where noderef field references nodeGalleryImage 2.
- Set the same title for page and nodeGalleryImage
- Create a view based on nodes.
- Add a relationship by the noderef field in "page" (non-required).
- Add a field: title (do not use relationship), label "page node" and set "link to node".
- Add a field: nodeGalleryImage (attached to noderef relationship), label "immage".
- Add a filter by node type (do not use relationship), set to "Is one of page".

NOW
the ID of page change!
and is substituted by the id of nodeGalleryImage

AND
if you create more page that refer image the view show duplicated (triplicated etc) entry, one for each page, but all with the galleyimage ID

(i beg your pardon for my horrible english)

Comments

dddave’s picture

dhalgren’s picture

ok, for me the solution is:
-download nodereferrer module dev and apply the last patch;
-add a filed nodereferrer to nodeGalleryImage content type
-create a view with relathionship: node:referrers and select the field referencing
-add field NodeGalleryImage:Image, node titles (using "relation - nodereferrer")

the view show in the first column the image and in the second column the the page referring to the image (A-ref1).
if you have more than a page referring to image A, the view show more row with the same image and all the pages (A-ref1, A-ref2, B-ref1, C-ref1, C-ref2, C-ref3 etc).

BUT
if i add more than 2 display page, the view don't work (error validation ???)

AND BTW
in this way i must create a very complex query. it will be more easy and performant use noderefrence than back nodereferrer.

kmonty’s picture

Status: Active » Closed (fixed)

This is not the way node gallery was intended to be used. You should 1st create your gallery then upload images through the node gallery administrative interface (Upload Images)