Posted by jop007 on December 31, 2012 at 9:22am
I have used the following modules
- entity reference
- entity reference prepopulate
- entitytype form
- token
- menu token
I want a menu link and use the current node id in the link like this
http://localhost:8082/node/add/booking?field_rental_house=5
When I use 5 the field Rentel_house is invisible and set correctly to a pointer to the rental_house. This is how I want it the user must not maintain the link.
When I replace 5 and make the url to this:
http://localhost:8082/node/add/booking?field_rental_house=[node:nid]
John
Comments
Problem?
John,
I don't think you really stated what the problem was. What happens when you use the url with [node:nid]? I assume that it is not working. But what are the results?
Results
Thanks when I use
http://localhost:8082/node/add/booking?field_rental_house=[node:nid} the reference field is not updated and the user must fill in a reference using a drop down box.
When I use ttp://localhost:8082/node/add/booking?field_rental_house=5 the entity reference field is hidden and updated okay reflecting to node 5.
I hope this clarifies my situation.
John
Thanks,
John
Module order
You may have a problem with the order of execution. You might need to set the weight on the modules. See http://drupal.org/node/110238. Not 100% sure.