HOw can I integrate it with referenced nodes? I have 2 content types - questions and answersm which are referenced. Currently I have to type in to which question the answer relates to, but I would like to populate it automatically. Any ideas?

Comments

Musicious’s picture

Version: 6.x-1.0 » 7.x-1.x-dev

I am trying the same thing at the moment... same use case as well... questions and answers.

The answers have a node reference which is meant to link to the questions NID. I am trying nodereference_url with no joy.

I have also installed the auto_nodetitle module which is good for this use case I believe.

@vonderro if you figure it out please write back here and I will do the same.

Musicious’s picture

Found this on nodereference_url issues....

http://drupal.org/node/1008212

It's a strange solution though. I don't know if it will work in Drupal 7.

edit...

That worked for me.

Put this at the end of settings.php file...

$conf['nodereference_url_paths'] = array('node/add/%type/%nid', 'node/%nid');

and changed my alias for my question node to /question/NID (i don't know if you have to do that or not)

Louis Bob’s picture

Thanks a lot, that worked perfectly for me :)