Drupal node reference [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this questionI am using two content type开发者_StackOverflow中文版s - test_parent & test_child In test_child there are two fields, both of type datetime And in test_parent there are two fields, week_no & 7 node references
I am using node_save to save a new node. After saving a node of parent type, and then saving the node of child type, i want to update the node it into the parent type.
I have completed creation of both nodes from code, and also i am able to update nid in parent type from code.
The problem is, the change in db is getting reflected in db but not on drupal node view. Even if i edit the node from drupal, it's showing -none- selected in node reference.
Please help.
Two modules that can help with this kind of thing...
http://drupal.org/project/cnr
http://drupal.org/project/noderelationships
I was going to suggest to be careful you're creating the nodes and applying the relationships through the proper Drupal API channels, but it sound like it was a node caching issue.
精彩评论