Situation:
A view has a contextual filter on a field named
type
.The view sorts by date and has the pager set to display 1 item (I want only the newest node).
I want to show
type
+ the node title as the view title.So, what I want to put in the Override title field is
{{ arguments.field_type_value }} {{ title }}
But {{ title }}
doesn't work. It outputs nothing. This isn't a surprise because (a) {{ title }}
isn't in the Replacement Patterns list and (b) I assume the view expects to display multiple nodes, so there isn't just one {{ title }}
to display.
Is there a straightforward way to do what I want to do using a view as I'm doing? There are reasons why I want to use a view.