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.
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
Comment #1
Musicious CreditAttribution: Musicious commentedI 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.
Comment #2
Musicious CreditAttribution: Musicious commentedFound 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)
Comment #3
Louis Bob CreditAttribution: Louis Bob commentedThanks a lot, that worked perfectly for me :)