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
Comment #1
dbeall commentedMoto 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
Comment #2
dbeall commentedThis 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(
Comment #3
justintime commentedI 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?
Comment #4
dbeall commentedBeen 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.
Comment #5
Rik commented@justintime
I think you are looking for a fix for this issue: http://drupal.org/node/505294
Comment #6
Golem07 commentedGood post. I am in need of the same functionality.
Comment #7
dbeall commented#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.
Comment #8
justintime commentedThis is implemented in NG3 with views relationships.