0

The question is simple, I have a Drupal 9 website with the Geolocation Field module. I use the Olivero theme.

In this theme, there is a "Hero (full width)" region. I want to display a View page with the nodes that have a geolocation field and I want to display the map in the "Hero (full width)" region.

The page and the map must share the exposed filters.

So my question is how to display the map in a different region by inheriting the exposed filters from the page?

It would be so much classier to have a full-width caret in Olivero.

Currently the only solution is to create an attachment with the map in view. The problem is the attachment is not a block and cannot be placed in another region.

I found a very old mod:

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

this seems to be a solution, unfortunately it is abandoned.

1
  • Is moving the exposed filters separate from the view sufficient? Views supports placing the exposed filter form as a block. Jul 11 at 1:50

1 Answer 1

1

You could add a second block display keeping the same exposed filters. If the exposed filters are not changed they use the same query parameters and are in sync. Then, as suggested by @PatrickKenny, expose the filter form of the second display as block, which you don't need to place anywhere, if you want to operate both displays with the exposed filters of the first one.

Your Answer

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