Store Locator icon
Module Id
js-store-locator
Group Id
org.jahia.modules.se.javascript
Updated
Requires Jahia
8.2.0.0
Author
smonier@jahia.com
Category
Business and Commerce
Status
COMMUNITY info

Store Locator group_work

maps leaflet location stores ui extension

This is a Jahia Javascript Module for Jahia 8.2+

Store Locator is a Jahia V8.2+ JS module that brings a full store-location experience to authors: the content model covers addresses, geolocation, and opening hours via reusable, translated fieldsets. The module now ships a lightweight, native-UI OpeningHoursSelector that registers as a selectorType for the openingHours field; editors get friendly day/opens/closes dropdowns styled to fill the editor width while values stay stored as JSON for compatibility. Translation is handled in‑module via a tiny provider that reads the settings/locales JSON and reuses Jahia’s current locale instead of reinitializing i18next, so the platform-wide i18n stack stays untouched. The Vite build shares React/i18n singletons with the Jahia shell, exposes @smonier/js-store-locator/init for both the shell and jContent, and records activation in the console—so you can verify the selector type loads. Source, README, and docs remain on the GitHub repo.

Dependencies & Dependants

Dependants
  • NONE

FAQ

- Leaflet map with zooming markers, tooltips, and a sidebar details panel

- Search filters by store name, city, or region

- Reset button clears the selection and re-centers the map on all stores

- Welcome block displays the per-site title/message

- Custom translation context drives all UI—including the selector—so no module-specific `i18next` initialization conflicts with Jahia

How To Install

To deploy the module on a Jahia instance, make sure the .env file contains valid host and credential values, then run:

yarn install && yarn build && yarn deploy

Alternatively, you can install the module directly from the Jahia Public Store and activate it on the target site.

 

Usage:

Create stores within a jContent folder; these will then be used by the storelocatorApp.

Images

License

This project is licensed under the MIT License.

You are free to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of this software, including for commercial purposes, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.

The software is provided “as is”, without warranty of any kind, express or implied.