Hi all, much busy-ness at work plus my new Moto Droid had kept me away from node gallery for a bit, but I'm back now.

I'm utilizing the workflow module to establish a workflow for images. One of the workflow states is "Needs edited". I have created a view that will show me all images that are in a "Needs edited" state. On this same view, I would like to display the name of the parent gallery with a link to it.

All the examples I've seen are "I have a gallery, and want all it's images". I have the opposite - I have an image, and want it's gallery. I don't see any existing field in there that will work for me.

Am I overlooking something? If this feature isn't there, I'd be more than willing to code it up - I just don't want to reinvent the wheel if the functionality is already there.

Comments

dbeall’s picture

Moto Droid, lol. I had to google that to find out what it was. I gave up mobile devices when they went from a radio-telephone transceiver to pocket-phones,( many years ago).

The view did have that function before, but I can't get it to work now. I think it must have been changed.
The code on the handbook page is what I am referring to, http://drupal.org/node/544748#viewsblocks
The random view block would link to the gallery and on my test site it is working, but it's a dev release from July..
The test page using the old version with the blocks is here at the bottom of the page, http://www.davebeall.com/node-gallery

dbeall’s picture

This is the only change I can see, other than t('strings') in node_gallery.views.inc

@@103
- $data['node_galleries_gallery']['op'] = array(
+ $data['node_galleries_gallery']['gallery_op'] = array(

justintime’s picture

I actually had imported that view from the docs page, and it does work for me. However, it's not quite what I'm looking for...

Imagine a view that is a table:

Thumbnail ImageTitle GalleryName WorkflowStatus

So, the view for random images you posted about makes use of the function where I can have the image thumbnail link either the image node, or the gallery node by toggling "teaser" or "gallery" under "Image List View Mode" on that field (poor choice of names there - why not use image node and gallery node?).

I want to have the Thumbnail link to the image node, but then have the title of the gallery displayed in the GalleryName column, which links to the Gallery node itself. Have you seen anything like that?

dbeall’s picture

Been up all nite building a website, I will play with it later and see what I come up with.
I am not that great with views,, but you never know.

Rik’s picture

@justintime
I think you are looking for a fix for this issue: http://drupal.org/node/505294

Golem07’s picture

Good post. I am in need of the same functionality.

dbeall’s picture

#3 @justintime, this is not the real issue here, but I agree..
"teaser" --should be-- "image node"

Most people that will use node_gallery have no idea what a "teaser" is in node_gallery. I still fight with that term myself as it just doesn't seem to fit in or makes no sense.

justintime’s picture

Status: Active » Fixed

This is implemented in NG3 with views relationships.

Status: Fixed » Closed (fixed)

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