How to get value from URL in a view block using contextual filter? 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.
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).