I'm not sure if this is a Views question or one about the References module, but my problem does seem similar to the backreferencing issue discussed at http://drupal.org/node/1083902 so I thought I'd ask here first.

I have two content types; events and venues. The event content type is just a date and this references a venue - I have named the node reference field as 'field_event_venue' and my venue node title is the venue name

Using Views I am able to create an upcoming events page with each date referencing a venue, by way of a link to the venue node.

I now want to place a Views block on my venue nodes which show the upcoming event dates for each given venue. I am using a contextual filter of 'Content: Title' and selecting the relationship 'field_event_venue'.

This is where I am getting stuck. The 'configure contextual filter' dialogue says "This display does not have a source for contextual filters, so no contextual filter value will be available unless you select 'Provide default' - None of the default values seem to help and needless to says, my venue date blocks do not show any upcoming dates.

Please could somebody tell me whether I am running into a limitation of Views blocks or whether this is this problem more to do with the references module.

Comments

dilari’s picture

I think you need to give the venue nodetype a nodereference field (i.e. 'field_event') referencing the events. Then use the Content:NId as a contextual filter using the 'field_event' as a relation and provide a default value with the 'Content Id from url'.
This should give you the referenced event nodes.

Also check the 'corresponding nodereference' module ( http://drupal.org/project/cnr ) This creates a back reference automatically so you can show venues on event nodes and events on venue nodes.

mrpauldriver’s picture

That's most helpful thank you

karens’s picture

Status: Active » Fixed

There is now a back references option in References module too (in the latest dev version).

Status: Fixed » Closed (fixed)

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

dilari’s picture

@KarenS: I can't find this option in references. Where can I find it's settings?