Removing [nid:n] in nodereference autocomplete
问题 Using the autocomplete field for a cck nodereference always displays the node id as a cryptic bracketed extension: Page Title [nid:23] I understand that this ensures that selections are unique in case nodes have the same title, but obviously this is a nasty thing to expose to the user. Has anyone had any success in removing these brackets, or adding a different unique identifier? 回答1: Ultimately, you need to change the output of nodereference_autocomplete() in nodereference.module. To do this