πŸ‡ΊπŸ‡¦Ukraine @kir.lazur@gmail.com

Kiev
Account created on 11 October 2012, over 12 years ago
#

Recent comments

πŸ‡ΊπŸ‡¦Ukraine kir.lazur@gmail.com Kiev

here's updated version of patch

πŸ‡ΊπŸ‡¦Ukraine kir.lazur@gmail.com Kiev

updated version with needs-data for token

πŸ‡ΊπŸ‡¦Ukraine kir.lazur@gmail.com Kiev

here the latest version including tokens as well

πŸ‡ΊπŸ‡¦Ukraine kir.lazur@gmail.com Kiev

Here is new version of patch with slight change to simplify displaying the value for current field using appropriate token.
Change highlight:

// We need special handling for the token destination type.
      if ($destination_type == 'custom') {
        $destination = $manager->replaceToken((is_array($destination) && isset($destination['custom']) ? $destination['custom'] : $destination), $replace_tokens, ['clear' => TRUE,<strong> 'field_name' => $field_name,  'delta' => $delta]</strong>);

It will allows to handle correct delta of current field with multiple values, like entity reference, with example token info like ['tokens']['current-field']['value']

if ($type == 'current-field' && $token == 'value' && isset($options['delta']) && isset($options['field_name'])) {
$replacements[$original] = $$data['node']->get($options['field_name'])->get($options['delta'])->target_id;
πŸ‡ΊπŸ‡¦Ukraine kir.lazur@gmail.com Kiev

Hi all,
thanks for contribution into this extension.
I'm agree with @ipinchuk, the full functionality of weight might be achieved with d&d on listing page, not only the field itself.

Production build 0.71.5 2024