It would be good if there was an option on the field to override the node add page title.

It would have access to some tokens, including the title of the referenced node.

So for example if I have a location entity and and event entity that references a location the node add page could have a title like

Add an event at [referenced-entity-title].

I understand I can do this custom but I think it would be useful to others.

Comments

delacosta456’s picture

Issue summary: View changes

hi
if i am not wrong an alternative and simple possibility could be (after setting up everything related to entityreference prepopulate module) :

1- Install and enable the Command buttons Module
2- Install and enable the Token Module (if not already installed)
2- In your site at admin/structure/command-buttons create a button, and for the "URL" write :

node/add/(the content type you want to create machine name )?(the entity reference field machine name)=[current-page:url:unaliased:args]

the word in bracket mean that you have to replace it with it's mean and the alias at the end of the link don't have to be changed.

Note: don forget the question mark between the centent type machine name and the entity reference field machine name

Example of url : node/add/article?field_articleinfo=[current-page:url:unaliased:args]