dev-master
9999999-dev https://octobercms.comWeather plugin for October CMS
MIT
The Requires
- php >=5.5.9
- composer/installers ~1.0
by Samuel Georges
by Alexey Bobkov
blog october weather octobercms
Weather plugin for October CMS
The plugin was created for the php[tek] 2014 conference., (*1)
The weather information is loaded from Open Weather Map. For the simplicity the country list in the Inspector dropdown menu is limited with United States, Canada and Australia, but if you edit the component definition in the page code manually you can set any country and state., (*2)
The plugin defines the Weather component that have four properties:, (*3)
To use the component, drop it on a page and use the {% component 'weather' %}
tag anywhere in the page code to render it. Note that the component injects a CSS file reference to a page to style the widget. It's optional. If you want to use it, use the {% styles %}
tag in the HEAD section. The next example shows a simplest page code that uses the weather component:, (*4)
title = "Weather" url = "/weather" [weather] units = "metric" == <!DOCTYPE html> <html> <head> <title>Weather component example</title> {% styles %} </head> <body> {% component 'weather' %} </body> </html>
, (*5)
Weather plugin for October CMS
MIT
blog october weather octobercms