I have two content types. One references the other. Currently I have view (node content view - views attach module) that is a table view that displays fields from the referencing node in a table list on the referenced nodes full page view.

I have just installed the GMap module, I had the Location module installed previouslly so I have already collected location information on the referencing nodes. I would like to display a Google map on the full page view of the referenced node.

I have read through the documentation for this module on the project page and am confused on whether I need to create an entirely new view or just add relationship fields to the existing node content view.

Ideally, I'd the full page view to display the referenced nodes content and then below/beside it a Google map of the referencing nodes. Beneath this is the table view populated by the node content view containing fields from the referencing nodes.

How would I go about doing this?

Cheers

Comments

Stomper’s picture

Attempted it but still having issues, I have had a look through this thread http://drupal.org/node/421688, but still confused as to why it is not working. This is what I have done:

I have created a node content view (views_attach).

For view style I have selected "GMap" and used all setting defaults.
For node content settings I have selected the ""
-- Build mode is "full node"
-- Argument is set to "nid"
For relationships I have selected "Node location: Reference"
-- I have not selected "require relationship"
-- For node reference field I have selected ""
For arguments I have selected "Node: nid" with validation of "node"
-- Node type is ""
For fields I have selected are "zipcode, city, and province"
No sorting
For filters I have "Published: Yes" and "Node: Type = "

Live preview in the view says "GMap views are not compatible with live preview," which implies that the view is properly configured but when I got to the referenced node's full page view, the area where the view should appear is blank.

Suggestions?

Stomper’s picture

Still having little success, nothing is rendering. My view must not be configured correctly. What's wrong?