Attempting to set up a view to be a "related galleries" type of thing, by passing the taxonomy ID to the view. This brings back all of the Gallery (Node Gallery) content types with the same taxonomy ID - sweet.
The problem is that when the view is being built, it will return the correct image and link that image to the correct node - a link to the gallery. However, all of the other node information that is returning is linking to the cover image. I've got the Title displaying underneath the image, so the image is linking to the correct place, then the title will link to the specific Gallery Image, rather than to the Gallery.
Currently, the view is set up with:
Arguments - Taxonomy: Term ID
Fields - Node Gallery Gallery: Gallery; Node: Title
Filter - Node: Type = Gallery (Node Gallery)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | gallery_bottom.txt | 2.32 KB | DOKKA |
Comments
Comment #1
kmontyI believe this issue is related to 2.x
It would be helpful to export the view so we could test.
Comment #2
DOKKA commentedI am having a similar problem trying to list gallery images that have a link to the gallery's id/node id
It will not display the image.
I can have one or the other, but not both. I am trying to design a custom gallery using panels, and I haven't
found a way around this.
the exported view is attached.
thanks,
~DOKKA
Comment #3
not_Dries_Buytaert commentedExperiencing this (with Node Gallery 6.x-2.0-alpha10), as well.
So, ONLY if (!) the "Node Gallery Gallery: Gallery Gallery" field (which is the Gallery cover image) is added to the view AND the "Link this field to its node" field option of any field is selected, the [Nid] in aforementioned link (!) changes from the [Nid] of the Gallery node itself to the [Nid] of the Gallery cover image node, which is incorrect. However, when the "Link this field to its node" field option is selected of the "Node Gallery Gallery: Gallery Gallery" field, the [Nid] in aforementioned link IS correct (i.e. the [Nid] of the Gallery node itself).
NB: Adding the [Nid] field to the view, shows that this module incorrectly parses the [Nid] of the Gallery cover image node instead of the Gallery node itself.
Export of the page view:
Comment #4
Rik commentedI have the same issue, so subscribing.
Comment #5
kmontyWill review asap
Comment #6
iknowbryan commentedI was having the same issue.
My solution:
-= instead of using the "link field to node" check box I used the "Output this field as a link"
-= used "node/!1" for the path
This worked! and made the title go to the Gallery rather than the Cover Image.
Hope this helps
-=b=-
Comment #7
gintass commented@be_design
Unfortunately your suggestion of adding node/!1 didn't work for me. What did you have for an argument? Maybe you can post your view export?
Comment #8
gintass commentedBTW the same problem exists if you use view export from documentation page:
http://drupal.org/node/544748#viewslistpage
and I'm using alpha12, not a 2.x-dev
Comment #9
justintime commentedViews fixes are in NG3.
Comment #10
Urme commentedThis isn't fixed yet for 2.0-beta2, if I print out my Node Gallery: Gallery ID, and link it to it's node it's working. But if I add Node: Title and then link that text to it's node it goes to the cover image instead of the gallery.
Comment #11
Urme commentedIn this file: includes\node_gallery_handler_field_gid.inc I added a row in the function pre_render();
Search for this:
while ($r = db_fetch_array($result)) {
$items[$r['gid']] = $r;
}
And replace with this:
while ($r = db_fetch_array($result)) {
$r['nid'] = $r['gid'];
$items[$r['gid']] = $r;
}
This fixed my problem at least.