Closed (works as designed)
Project:
Node Gallery
Version:
7.x-1.x-dev
Component:
Howto/FAQ/Example
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2014 at 11:16 UTC
Updated:
23 Jan 2015 at 12:44 UTC
Jump to comment: Most recent
Comments
Comment #1
szy commentedGuys, any help on this?
That's the simplest thing could be: just the other items from the same gallery.
What relationship I should use?
Szy.
Comment #2
szy commentedOk, got it.
The key is argument for contextual filter. Put the code below into 'PHP Code' of Content ID argument:
Szy.
Comment #3
szy commentedComment #4
zengenuity commentedThe relationships are complex, but it's better to do it this way than using PHP in the arguments, I think. Try this view as an example:
Comment #5
hstreitzig commented@ zengenuity - You made my day! Trying this for a few days with different relationships. But this complex configuration i´ll never find out. Thanks
Comment #6
sistro commentedTnx zengenuity!
I'm trying your view and it works ... but I got some errors:
Notice: Undefined index: 208 in node_gallery_api_get_item_position() (line 825 of .../node_gallery/node_gallery_api.inc).
Notice: Undefined index: 208 in node_gallery_api_get_item_position() (line 825 of .../node_gallery/node_gallery_api.inc).
Notice: Undefined index: 208 in node_gallery_api_get_item_position() (line 825 of .../node_gallery/node_gallery_api.inc).
Notice: Undefined offset: 0 in node_gallery_api_get_first_item() (line 607 .../node_gallery/node_gallery_api.inc).
Notice: Undefined offset: -1 in node_gallery_api_get_last_item() (line 623 of .../node_gallery/node_gallery_api.inc).
Another problem I have is to create a view (in a block) that only show me the gallery item for a gallery... well, it seems to be easy, but I can not get it to work! can you help?