views:

348

answers:

1

I am using two content types - 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.

A: 

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.

doublejosh
Thanx josh, sounds really good.
Nikunj Kotecha

related questions