How to pass arguments to view inside a block

I just realized that by default views in block can’t access arguments. After some research i found an easy solution: go to your view and the arguments section.

Set “Action to take if argument is not present:” to Provide default argument and choose Node ID (or other argument) from URL

Here a screenshot of the configuration





Another solution would be using panels.

Reply