Exclude tokens in excerpts

Created on 18 February 2025, about 1 month ago

maybe there is already a solution but i could not find any. Thank you for any input.

Problem/Motivation

An excerpt shows tokens like [toc:ol] or [nide:nid]

Steps to reproduce

Add token to a body

Proposed resolution

Exclude tokens

Remaining tasks

💬 Support request
Status

Active

Version

1.37

Component

Documentation

Created by

🇩🇪Germany marcoka

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

Comments & Activities

  • Issue created by @marcoka
  • 🇦🇹Austria drunken monkey Vienna, Austria

    Thanks for reporting this issue!

    I can see where this would come from, yes – when your entity fields contain tokens, we don’t render those before compiling the excerpt, so the tokens would still be in there. We probably need to provide an option to just remove those “forcefully” from the excerpt, or maybe even render them as far as possible (which is mostly the site:* ones and maybe user:*).
    However, since no-one else has complained so far this isn’t high priority right now. In case someone wants to implement this, I’m happy to review, but otherwise I’ll have to wait until more people follow/comment here to express their support.

Production build 0.71.5 2024