Module weight must be higher than token module weight

Created on 16 February 2024, 10 months ago
Updated 11 September 2024, 3 months ago

Problem/Motivation

Hi there, I was testing this module and having issues to get values for the summary token.
After some debugging I've discovered that the replacement value set by this module for summary token is then overridden by the Token module itself. ( see _field_tokens() function, file: token.tokens.inc, line ~1715)

Steps to reproduce

Install this module and create a content type with paragraph as suggested
Use the generated token [node:field_paragraph:summary] to populate something, like the metatag description default value

Expected results:
Metatag description values is extracted by the paragraph_summary_token

Actual results:
Metatag description value is empty

Proposed resolution

Setting the module weight higher than Token module weight solve this issue.

Not sure if setting a specific weight during module install is the right approach to solve this issue.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇹Italy Pix_

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024