I've just upgraded from 6 to 7 and noticed a difference between the 2 in my ability to add the nid of a reference. I was always able to add the node id for node reference fields but that seems to be gone now with entity reference.

My old ones are still there (example: org-action-tab/[field_group_action_reference-nid]/[og-id]/[node:nid]) but I created a new entity reference field and I can't get the nid into the path.

Please advise me. I need to find a way to have the reference's nid in the path.

Comments

Dev8.addweb’s picture

Have checked that dman's sandbox: Node Renumber.

Suggested module instead uses the API to load and re-save the whole node entity with a new-ish nid. nid is a unique foreign key to half the tables in the database. Trying to do it with SQL only is almost sure to leave something behind and put your database into an unstable state.

This is a sandbox project, which contains experimental code for developer use only.

Thanks!