Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I'm trying to get this working, but... unfortunately, no effect:
a view of gallery items on a single item's page, loaded from page.tpl.php.
All of them belong to the same gallery. These double relationships are making me crazy :/
Thanks - for a detailed steps, or exported view.
Szy.
Comments
Comment #1
szy CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: szy commentedComment #4
zengenuity CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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?