It would be nice to be able to include the Node Title (or other identifying info) as a token in the "Pattern for automatic name generation", in cases where Storage Entities are being created in via Inline Entity Form.

Comments

JLeMosy created an issue. See original summary.

mxh’s picture

Version: 1.2.6 » 1.1.x-dev
Component: Code » Miscellaneous

The desired outcome is probably not easily achievable. You probably want to have the most recent value of the node title - that may just be entered in the form without being submitted before - within the storage entity's name, however the form processing is complex on inline entity forms.

The only (partially) working concept could be using Context Stack:

  • Get the Context Stack module with composer require drupal/context_stack
  • Install context_stack_form sub-module with drush en context_stack_form
  • Configure the form display for the reference field using Inline entity form - Simple (Complex doesn't work with Context Stack)
  • Within the pattern for automatic name generation, you can then use for example Storage item for [current:form:node:title]

However, this will probably only work with an already saved node that has a title. As said, probably the form processing that is involved here is so complex that it's hard to get the most recent title value here.

mxh’s picture

Status: Active » Closed (outdated)