Limit glossification to selected content types and displays

Created on 13 November 2023, almost 2 years 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

Merge Requests

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.

  • First commit to issue fork.
  • 🇮🇳India nishantghetiya Pune

    nishantghetiya changed the visibility of the branch 3401411-limit-glossification-to to hidden.

  • 🇮🇳India nishantghetiya Pune

    I've created an MR that provides checkbox settings for restricting content type on glossify configuration.

  • Pipeline finished with Success
    2 months ago
    Total: 773s
    #584912
  • 🇩🇪Germany Anybody Porta Westfalica

    @nishantghetiya thanks, nice!!

    • The bundles should be stored as sequence, not as string with separator
    • This should also be implemented for the other entity types
  • Pipeline finished with Success
    about 1 month ago
    Total: 135s
    #608420
  • Pipeline finished with Success
    about 1 month ago
    Total: 202s
    #613385
  • Pipeline finished with Failed
    about 1 month ago
    Total: 151s
    #613410
Production build 0.71.5 2024