Limit glossification to selected content types and displays

Created on 13 November 2023, about 1 year ago
Updated 20 August 2024, 3 months ago

Problem/Motivation

The module glossifies any text that matches the text format where is activated. This has the effect of glossifying all content types (bundles) but some types we don't want to glossify. Also, as body is a Text (formatted, long, with summary) field, glossify acts on both body and summary which is not always desirable or suitable.

Steps to reproduce

Proposed resolution

- Make an option to select bundles (content or taxonomy) where glossify applies
- Make an option to apply or not on summary of fields Text (formatted, long, with summary) and/or Make an option to apply on selected displays (view modes)

Remaining tasks

User interface changes

See above "proposed resolution"

API changes

Data model changes

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡«πŸ‡·France erwangel

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

Comments & Activities

  • Issue created by @erwangel
  • πŸ‡¬πŸ‡§United Kingdom jacobupal Leeds

    I made an extra Text Format called 'HTML + Glossary' and only that format uses the Glossify filter. Would that solve your problem?

  • πŸ‡«πŸ‡·France erwangel

    Indeed this may be a solution and even better that what I suggested (option to select bundles) but we will still need an option to apply or not to summary which inherits the text format of the main field (body). I think most people don't want to have summaries with plenty links. Also I didn't check how such glossified summaries appear in metatags or in other token based fields.

  • πŸ‡ΊπŸ‡ΈUnited States byrond

    Our solution for this was to use Field Formatter Filter β†’ and create a text format with only the Glossify filter. Then, we were able to add that as an additional filter for the fields where we want Glossify to work. Editors do not need access to the text format with this solution, and you don't need to change the text format of your content.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica
  • πŸ‡ΊπŸ‡ΈUnited States yospyn

    Just commenting this is an issue for me as well, as we only want Glossify on book pages. Thus, will create text formats only for the book content type with Glossify enabled.

  • πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

    Happy to review MR's but this isn't something we're going to implement ourselves. I think it's an edge-case and there are ways to solve this like described above or in contrib.

    Feel free to close won't fix or provide an implementation.

Production build 0.71.5 2024