1

I want to show related nodes of an open article in a block, but how do I access Node IDs from url in block view.

1
  • Here's a good tutorial: [ click here](dannyenglander.com/blog/…) Note that in the example, he's filtering OUT the current node, but filtering FOR nodes that match the current node's taxonomy terms.
    – user78498
    Sep 21, 2017 at 7:03

1 Answer 1

1

Assume your article is located at node/nid (with nid the id of the node of the article), then configure your contextual filter like so:

When the filter value is not available: Provide a default value with Type = "Content ID from URL" (that value should correspond to the nid of your article).

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