Hey there,

I'm using prepopulate module with this module to create nodes one after the other, but I need those nodes to remember a cck nodereference field NID.

I inserted the normal path from the prepopulate module which is :

/node/add/antecedent?edit[field_patient_reli][nids]=INSERTNIDHERE

I replaced the INSERTNIDHERE part with the token [field_patient_reli-nid] which is taken from the token interface in node go to.

when I submit a node, here's the url I get :

/node/add/antecedent?edit[field_patient_reli][nids]=[field_patient_reli-nid]

So the token is actually not replaced at all by the actual value. If I change the value of the token by hand, the right option is preselected in the nodereference dropdown... so the url itself should work.

Any ideas why this does not work??

Thanks,
Patchak

Comments

greggles’s picture

Well, Token mostly has to work after the node has been submitted and all the data stored. My guess is that the nodegoto module runs too early during the node save process. Perhaps you could try setting the "weight" of the nodegoto module in the system table to 1 and see if that works?

greggles’s picture

Status: Active » Postponed (maintainer needs more info)
greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)