Skip to content

File Reference

The module's file layout, for anyone maintaining a template override.

Updated 1 min read

For anyone maintaining a template override or investigating an issue at the file level:

mod_weather.xml                     Install manifest / configuration fields
mod_weather.php                     Entry point (assets, caching, layout loading)
helper.php                          API clients, condition mapping, icon set,
                                    colour engine, formatting helpers
tmpl/_error.php, tmpl/_meta.php     Shared partials (hidden from the layout picker)
tmpl/*.php                          The 17 layout files
media/css/mod_weather.css           Base styles, palettes, the 6 original layouts,
                                    the icon system
media/css/mod_weather-designs.css   The 11 design-pack layouts (loaded only when
                                    one of them is selected)
language/en-GB/                     Language files (also de-DE, fr-FR,
                                    es-ES, it-IT — see Languages)

To add a custom layout: copy one of the files in tmpl/ (excluding the two starting with _), rename it, and adjust its markup. It appears in the Layout dropdown automatically after saving — no manifest change needed.

Was this article helpful?

Image

Everything you need to build on Joomla — one subscription away.

Resources