Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I can't for the life of me, get the title to display the term it retains the view name.
Have set contextual filter for Content: Has taxonomy term ID, Title: %1
have the same problem with taxonomy_display, so i assume it's something I'm not doing right.
TIA
Comment | File | Size | Author |
---|---|---|---|
#4 | override title.jpg | 24.66 KB | atomicnation |
#4 | Contextual Filters.jpg | 9.78 KB | atomicnation |
Comments
Comment #1
kevinquillen CreditAttribution: kevinquillen at Velir commentedIs the view a block display? I have noticed that a page view type works for titles, but for a block display nothing happens.
Comment #2
fomenkoandrey CreditAttribution: fomenkoandrey commentedi have the same problem.
the view - is a page view.
but i see view title only.
no taxonomy term in title.
Comment #3
atomicnation CreditAttribution: atomicnation commentedSame problem with 8.x, it keeps the "TVI Foo View" title from the sample view.
Comment #4
atomicnation CreditAttribution: atomicnation commentedI figured out how to set the Taxonomy Term name as a title for the page view.
In my case I'm using Taxonomy Views Integrator to apply the views to my Vocabularies. I have created a view for each vocabulary and assigned a view for each of them.
In the view I have a Contextual Filter "Content: Has taxonomy term ID". Inside this contextual filter I marked "Override title" and replaced for {{ arguments.tid }}.
Now the page title is the right Taxonomy Term name.
Hope it will help you!
Comment #5
cathiwithani CreditAttribution: cathiwithani as a volunteer commentedIt helped me! Thank you!
Comment #6
evargasThank you @atomicnation that help me!
Comment #7
steinmb CreditAttribution: steinmb as a volunteer commentedThink this is safe to close now.