simplemap icon indicating copy to clipboard operation
simplemap copied to clipboard

Searching on parts

Open rauwebieten opened this issue 5 years ago • 3 comments

Description

Is this featured? For both, searching in the admin, and for creating queries

In the admin, I can search on fulladress, not on parts: see https://pasteboard.co/IVxZA8h.png

In my templates I want to do things like

{% set results = craft.entries()
    .search("address.parts.postcode:2000")
    .all() %}

Additional info

  • Craft version: 3.4.7
  • Maps version: 7.3
  • PHP version:"ether/simplemap": "3.7.7"

rauwebieten avatar Feb 20 '20 11:02 rauwebieten

It's not supported currently, but is on our list!

Tam avatar Feb 26 '20 12:02 Tam

Searching on parts is mentioned in the docs. https://docs.ethercreative.co.uk/maps/getting-started/usage/#parts Any idea when it will be available?

SophietjesCode avatar Mar 05 '20 15:03 SophietjesCode

If anyone's interested, I've had to do a workaround to get this sort of functionality working.

You can use the preparse field type (https://plugins.craftcms.com/preparse-field) to save the different address parts into, which then will allow it to be searchable.

This may not be a viable solution for all, but will hopefully help someone!

nathancope avatar Nov 19 '20 09:11 nathancope