2

I have a view page that shows a single node based on a contextual filter that looks at an aliased path version of the title. For example my URL might be http://www.tacoland.com/resources/npr-story-about-tacos

and I want to set the page title to be NPR Story About Tacos (the node title).

I see how I can change the title with the value from the URL within the contextual filter settings, but I want it to be the proper node title.

My issue is basically like this one, but for D8: Views Page Title Based on URL

2
  • Add Title as field

    • ☑️ Checkmark exclude from display
  • For view title, put {{ title }}

enter image description here

6
  • Thank you for the response, but unfortunately that doesn't work. Aug 19 '20 at 15:35
  • I tested it... thats how I got the screenshot.
    – No Sssweat
    Aug 19 '20 at 15:48
  • 1
    You're right, I'm sorry. I was just coming back here to say I realized I still had a value in the override title section of the contextual filter. Aug 19 '20 at 16:20
  • Any idea why I'm still seeing {{ title }} for the breadcrumb on this page? Aug 19 '20 at 22:49
  • That's due to a bug in core, try applying the patch in comment #44 for D8.
    – No Sssweat
    Aug 19 '20 at 23:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.