You are here

README.txt in Entityreference prepopulate 7

Description
===========
Allows the contents of an "Entity Reference" field to be pre-populated by
taking a parameter from the URL path.

Install
=======
1. Download and enable the module.
2. Visit admin/structure/types/manage/[ENTITY-TYPE]/fields/[FIELD-NAME]
3. Enable "Entity reference prepopulate" under the instance settings.


Configuration
=============
Enable Entity reference prepopulate:
  Check this to enable Entity reference prepopulate on this field.
Action
  Using the select box choose the action to take if the entity reference
  field is pre-populated.
Fallback behaviour
  Select what to do if the URL path does NOT contain a parameter to
  pre-populate the field.
Skip access permission
  This is a fallback override, the fallback behaviour will not be followed
  for users with the specified permission.

Usage
=====
In order to pre-populate an entity reference field you have to supply the
parameter in the URL.

The structure is
node/add/article?[field_ref]=[id]

Where [field_ref] is the name of the entity reference field and [id] is
the id of the entity being referenced.

Examples:
node/add/article?field_foo=1
node/add/page?field_bar=1,2,3


File

README.txt
View source
  1. Description
  2. ===========
  3. Allows the contents of an "Entity Reference" field to be pre-populated by
  4. taking a parameter from the URL path.
  5. Install
  6. =======
  7. 1. Download and enable the module.
  8. 2. Visit admin/structure/types/manage/[ENTITY-TYPE]/fields/[FIELD-NAME]
  9. 3. Enable "Entity reference prepopulate" under the instance settings.
  10. Configuration
  11. =============
  12. Enable Entity reference prepopulate:
  13. Check this to enable Entity reference prepopulate on this field.
  14. Action
  15. Using the select box choose the action to take if the entity reference
  16. field is pre-populated.
  17. Fallback behaviour
  18. Select what to do if the URL path does NOT contain a parameter to
  19. pre-populate the field.
  20. Skip access permission
  21. This is a fallback override, the fallback behaviour will not be followed
  22. for users with the specified permission.
  23. Usage
  24. =====
  25. In order to pre-populate an entity reference field you have to supply the
  26. parameter in the URL.
  27. The structure is
  28. node/add/article?[field_ref]=[id]
  29. Where [field_ref] is the name of the entity reference field and [id] is
  30. the id of the entity being referenced.
  31. Examples:
  32. node/add/article?field_foo=1
  33. node/add/page?field_bar=1,2,3