Jonathan Miller 45258bd7ad feat(component): implement multi-category, custom markers, and custom fields (#1, #2, #6)
Multi-category support (#1):
- Categories table with parent_id hierarchy, color, marker_icon
- Location-category junction table for many-to-many relationships
- Category CRUD: admin model, table, controller, view, form
- Categories list view with color swatch, parent, location count
- Category edit form with color picker and marker icon upload
- LocationCategoriesField: multi-select for assigning categories
- LocationModel saves/loads junction table on save/edit
- Categories submenu in admin

Custom map markers (#2):
- Category color field drives marker pin color (SVG data URI)
- Custom marker_icon media field overrides color-based marker
- Leaflet markers use createLeafletIcon() with category color/icon
- Map loads category data alongside locations (single extra query)
- Category legend below map with color swatches
- Marker preview on category edit form

Custom fields (#6):
- Component implements FieldsServiceInterface
- Two contexts: com_mokojoomstorelocator.location and .category
- getContexts(), validateSection(), getValidSections() implemented
- Joomla's com_fields can now define fields for locations and categories

Closes #1, #2, #6

Authored-by: Moko Consulting

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-21 16:30:31 -05:00

MokoJoomStoreLocator

A Joomla 4/5 package providing a store locator listing component with coordinating map and search modules.

Package Contents

Extension Description
com_mokojoomstorelocator Component for managing store locations (admin CRUD + frontend listing)
mod_mokojoomstorelocator_map Site module displaying an interactive map with location markers
mod_mokojoomstorelocator_search Site module providing search/filter form for finding locations

Requirements

  • Joomla 4.4+ or 5.x
  • PHP 8.1+
  • MySQL 5.7+ / MariaDB 10.3+

Installation

  1. Download the latest pkg_mokojoomstorelocator-x.x.x.zip from Releases
  2. In Joomla Administrator, go to System > Install > Extensions
  3. Upload the package ZIP — all extensions install automatically

Features

  • Manage store locations with address, coordinates, contact info, and business hours
  • Interactive map display (OpenStreetMap/Leaflet or Google Maps)
  • Location search by city, postcode, or radius
  • Schema.org LocalBusiness structured data markup
  • Category support for grouping locations

License

GPL-3.0-or-later — Moko Consulting

S
Description
Joomla 5/6 store locator package — interactive map, location search, and admin management
https://mokoconsulting.tech/support/products/mokosuitestorelocator Readme GPL-3.0
2.6 MiB
2026-06-29 14:30:31 +00:00
Languages
PHP 58.7%
Markdown 24.1%
XML 9.3%
INI 4.9%
SQL 2.6%
Other 0.4%