Can it decorate taxonomy term links?

Created on 18 January 2024, 10 months ago
Updated 1 February 2024, 10 months ago

Problem/Motivation

It would be great if one could decorate each term individually.
Is that possible?
If so could be please give a short instruction on how to do it?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇦🇹Austria maxilein

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

Comments & Activities

  • Issue created by @maxilein
  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe

    You will need a regex for each individual term.

    Taking drupal.org forums (which are taxonomy terms) as an example:

    Example link:
    https://www.drupal.org/forum/support or https://www.drupal.org/forum/services

    Example regex for matching all forums:
    ^https?:\/\/www.drupal.org\/forum\/(.*)

    Example regex for matching each forum separately:
    ^https?:\/\/www.drupal.org\/forum\/(support)$ and ^https?:\/\/www.drupal.org\/forum\/(services)$

    For internal links adjust the regex accordingly.

  • 🇦🇹Austria maxilein

    Thank you!

  • Status changed to Fixed 10 months ago
  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe
  • Status changed to Active 10 months ago
  • 🇦🇹Austria maxilein

    Is there a way to automatically apply it to the links which are created by views?
    E.g. the linked title field of a term as output by a view?

  • Status changed to Fixed 10 months ago
  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe

    This is really a very basic Drupal question, please use the forums or the chat for support like this.

  • 🇦🇹Austria maxilein

    If it was so basic, I would have found an answer ... and not have asked you.
    I am looking for solution that works site-wide automatically.
    I do not want to change code in each view manually.
    But thank you anyway.

  • 🇩🇪Germany sanduhrs 🇪🇺 Heidelberg, Germany, Europe

    This is not a solution that works site-wide automatically.

    All the best.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024