5

I have a website with Drupal 9 and the Geolocation module :

https://www.drupal.org/project/geolocation

I created a content type with a Geolocation field that contains coordinates.

My website uses the Olivero theme. I want to create a Views page with the summary my nodes and create a Views block with my nodes on a map.

The block must be on the same page, but it must be in the "Hero (full width)" region of the Olivero theme.

I have added a filter exposed in "Filtering criteria" of the Geolocation module to my page to filter the nodes in proximity.

I want this filter to be applied to the page, but also to the block. How to filter the page and the block ?

Here is the configuration of my Views :

The page.

enter image description here

The exposed filter "Proximity" for the Geolocation field, with its identifier.

enter image description here

The block.

enter image description here

I added a context filter, but the block is not filtered, if I filter the page with Proximity in "Filter criteria".

enter image description here enter image description here enter image description here

1
  • Does no one have a solution ?
    – zoulou66
    Dec 30 '21 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.