How do I allow users to search directory listings by location?
Directory search by location allows users to filter directory listings by city, state and country. See a live example on the ePublishing demo site here .
By default, directory search by location is hidden on directory search forms. When enabled the directory search form will display city, stage and country fields. To display search by location on a directory search form enter the directory ID(s) in the "Value" field of system setting directories.display.location.search.
- Go to Advanced > Settings
- Find the system setting named directories.display.location.search
- Insert the ID of the directory or directories you would like to display location by search on in the "Value" field. To display search by location on multiple directories enter the directory IDs separated by a comma (see screenshot below). Please be careful not to inadvertently change the name of the system setting as it could cause the site to break.
- Click "Save"
- Go to the front-end of the site to view your changes.
Note it may take a moment for the changes to appear due to caching.