Filter for field of current node I want to list (in a views block) only teasers of articles that are younger than the current node.

Somehow I have to use the current node from url->field_date for filtering. Is this possible with views via the UI (Contextual Settings)?

Or do I have to create a module for that? If so... which hook should I use.. how to tell the view to filter?
Don't think its possible with just configuration and/or contrib modules.

I believe you have to override hook_views_query_alter(&amp;$view, &amp;$query) and add  $query-&gt;addWhereExpression based on the current nodes date field.

Dig in core/modules/datetime/src/Plugin/views/filter/Date.php function opSimple($field)  and perhaps core/modules/views/src/Plugin/views/filter/Date.php function opSimple($field) to see how they properly use the addWhereExpression