Is there a way to do an inserted view into a content template for a node type that will list all nodes of other content types that reference it? For instance, if I have a "person" content type and different CCK node reference fields in other various content types reference that person node, I want a view in table form in that person node that lists all the nodes that reference it, including the node type as one of the included fields so you know kind of content type it is that the reference is for. I don't see anything from the filters approach on the view itself to filter something like that (as opposed to filtering on the currently logged in user as the author or commenter, etc). I'm only assuming that insert_view is the best approach to this, as I haven't played much with it yet. In my reading on the module, I don't see an obvious way to pull it off, nor a better approach to accomplishing such a task.

Comments

shunting’s picture

Bump

muso’s picture

Title: View all nodes that reference a node? » I think I have the same problem...

I think I'm trying to attain a similar objective:
http://drupal.org/node/131740

My guess is that there is some fairly basic code that can be put into the calculated field module for CCK, but I can't find any sample code - if I had more time I guess I could work it out (I know a little PHP, but I'm a noob at configuring Drupal to this extent)...

I also found this after I posted my own question:
http://drupal.org/node/128853

muso’s picture

Title: I think I have the same problem... » View all nodes that reference a node?

Sorry, didn't mean to change the title. This comment is just to reinstate it. D'oh!

pasqualle’s picture

Status: Active » Closed (fixed)

closing all D5 issues

this is not a question for insert_view module..
node_reference module has view filter and argument handlers which works nicely for this case..