How to get the argument as term name and not the ID?

Created on 11 September 2023, over 1 year ago
Updated 28 May 2024, 7 months ago

Hello,

I'm using this module to use the term name as an argument rather than the term ID.

I've also applied this patch: https://www.drupal.org/project/views_taxonomy_term_name_into_id/issues/3... ✨ Support term names containing spaces and dashes Needs work to solve the issue whe there are dashes inside the term name.

However, whenever I try to use the replacement pattern for the view title, I only get the ID.

I've seen this:

Views argument validator plugins validate arguments (contextual filters) on views. They can ensure arguments are valid, and even do transformations on the arguments. They can also provide replacement patterns for the view title. For example, the 'content' validator verifies that the argument value corresponds to a node, loads that node, and provides the node title as a replacement pattern for the view title.

https://api.drupal.org/api/drupal/core%21modules%21views%21src%21Plugin%...
But there's no documentation to figure out how it works.

I've also seen this related issue: https://www.drupal.org/project/drupal/issues/2959316 β†’
But it doesn't help.

Anyone knows how to achieve this?

Thanks!

πŸ’¬ Support request
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

πŸ‡§πŸ‡ͺBelgium ludo.r Brussels

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

Comments & Activities

Production build 0.71.5 2024