Limit glossification to selected content types and displays

Created on 13 November 2023, 7 months ago
Updated 20 June 2024, 3 days 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
  • 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.

Production build 0.69.0 2024