All this passing around of the related parameter originates with the user clicking an 'add' button in a list of entities that, in its turn, was shown in response to clicking a related tag when editing or viewing an item.
Those lists of entities are generated by the
index() method of the
Browse class, so we have to make sure that suitable information (that is, the name of the entity that is listed together with the ID of the instance) is passed on.
This means we have to:
index()method to receive a related parameter that can be passed on when the 'add' button is clicked.
<input>element to hold this information, so that ...