Auto create entity with values from another one and the current user¶
Version v1
Initialising viewer…
You can apply this model as a recipe (Drupal 10.3 or later) to your own Drupal site:
1 2 3 4 5 6 7 8 9 10 11 | |
Purpose¶
This model reacts upon creating a new page node. It then creates a new article node, its title is populated with the page auther's name, some static text and the title of the created page.
The recorded video provides more explanation as we go on.
Requirements¶
This recipe includes the library's article_content_type and page_content_type recipes, which provide the Article and Basic page content types together with their body field. Drupal 11.4 removed those content types from the Standard profile and Drupal 12 removed core's recipes for them, so the library ships its own. Composer installs them alongside this recipe.
Dependencies¶
- config
- node.type.article
- node.type.page
- module
- eca_content
- modeler_api