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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kevinquillen’s picture

Is the view a block display? I have noticed that a page view type works for titles, but for a block display nothing happens.

fomenkoandrey’s picture

i have the same problem.
the view - is a page view.
but i see view title only.
no taxonomy term in title.

atomicnation’s picture

Same problem with 8.x, it keeps the "TVI Foo View" title from the sample view.

atomicnation’s picture

FileSize
9.78 KB
24.66 KB

I 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!

cathiwithani’s picture

It helped me! Thank you!

evargas’s picture

Thank you @atomicnation that help me!

steinmb’s picture

Status: Active » Fixed

Think this is safe to close now.

Status: Fixed » Closed (fixed)

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