How to prepopulate the body field with the body field of another node, using URL parameters

Created on 24 March 2023, over 1 year ago
Updated 27 March 2023, over 1 year ago

Problem/Motivation

I like to use this module to prepopulate the body of another node in a new node.
I have a number of nodes that I tagged as templates, and I'm currently cloning them when I want to create a copy.
However, cloning appears to me less user friendly than prepopulating a node form.

I can imagine that Entity Prepopulate could be used to have the node ID as URL parameter, and that the token in the body field fetches that ID to construct the token of that body field.

How could this be accomplished?

πŸ’¬ Support request
Status

Active

Version

1.5

Component

Miscellaneous

Created by

πŸ‡³πŸ‡±Netherlands Yuri

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Yuri
  • πŸ‡ΊπŸ‡ΈUnited States justcaldwell

    One possible solution: We use the Config Pages β†’ module to manage bits of content that are intended to be re-used in other parts of the site. For example, we have one Config Page with a formatted text field that contains 'boilerplate' content that is the default value for fields in other nodes on the site.

    Every Config Page entity has an option to expose its values as tokens. Those token values can then be used with Entity Prepopulate.

Production build 0.69.0 2024