How to get rendered value of Site Settings formatted text field in token?

Created on 9 February 2018, almost 7 years ago
Updated 1 November 2023, about 1 year ago

Other entity tokens (eq node fields) have tokens that will be replaced to formatted value of field, eq [node:field_formatted_text] will display rendered value of field.

But for Site Settings Formatted text type fields we have only 2 tokens:

  • [site_settings:label--type--field_formatted_text-value] displays raw value of field, so if we use wysiwyg - it will display HTML tags as rendered text, not as markup.
  • [site_settings:label--type--field_formatted_text-format] displays selected format.

How can we display formatted value of Site Settings Formatted text field via tokens?

💬 Support request
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024