In Views 3, I have a block that is showing content from a particular Node ID. I'd like to have the title of that block set dynamically to what the referenced page's title is. I know this would be accomplished using Contextual Filters and that my display's title would be an argument, like %1 but I'm uncertain what the Contextual Filter settings should be. I'd rather not use PHP code if avoidable simply because I don't have the 'PHP Filter' module enabled on most sites I create.

Which settings should I use to make a block title the same as the title of a referenced node?

3 Answers 3


In Views, with a block output & Content Entity Relationship set up, in 'Contextual Filters':

WHEN THE FILTER VALUE IS AVAILABLE OR A DEFAULT IS PROVIDED - Override title (tick this & I used %1 with some text)

which offers "Override the view and other argument titles. Use "%1" for the first argument, "%2" for the second, etc."


You can't set the block title from within the view using contextual filters the way you are thinking, only the title of the view itself. On this page there is a similar goal and a few suggestions:

Dynamic block titles


I know this is old, but maybe it can help someone. Just put on the view title [title], and add the field title to field list in view; then, select Exclude from display. Done!

First add [title] and then include in fields

then it works

  • This is not dynamic. You have set it to be based from one particular node which is unchangeable. The idea is for the title to change based on the node that is being viewed. Thanks anyhow.
    – PWM
    Jul 8, 2016 at 1:19
  • @Pierre.Vriens Where do you see a new question? There aren't questions at all.
    – apaderno
    Jul 9, 2016 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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