#Pico CMS

Pico Leaflet: using the geocoder-php library

le 16/10/2014 dans Pico CMS #dev#Leaflet#php#Pico CMS#plugin

Instead of using the basic geocode function that use the PHP file_get_contents() function, you can use "The almost missing Geocoder PHP library!" : geocoder-php. First, you have to install and load this library. Edit the composer.json and add to the require section this line : "willdurand/geocoder": "3.0.*@dev" If curl isn't available on your server, you…

Pico Leaflet: adding a thumbnail to Leaflet popups

le 28/08/2014 dans Pico CMS #dev#javascript#Leaflet#php#Pico CMS#plugin

You simply have to use the Thumbnail meta, using the relative path to your imgage as value. For example I wan't to use the image http://momh.fr/IMG/logos/conkylogo.png, I'll use IMG/logos/conkylogo.png as the path: /* Title: Pico Leaflet : fourth example Description: Ajouter une carte à des pages articles dans Pico CMS Author: Brice Boucard Date: 2014/08/28 License: Creative

Pico Leaflet: mixing coordinates and addresses

le 17/08/2014 dans Pico CMS #dev#javascript#Leaflet#php#Pico CMS#plugin

Of course you can mix coordinates and addresses : /* Title: Pico Leaflet : third example Description: Personnaliser l'accueil de son terminal avec les programmes cowsay et fortune. Author: Brice Boucard Date: 2014/08/15 License: Creative Commons Attribution-ShareAlike 4.0 International License Template: index Coordinates: 45.196135,4.836044|45.420207,4.288101 Address: rue François Perrin Limoges|28 boulevard des frères de Goncourt Nantes */

Pico Leaflet: using the address meta attribute

le 16/08/2014 dans Pico CMS #dev#javascript#Leaflet#php#Pico CMS#plugin

Instead of using coordinates, you can use addresses to geolocate your blog posts. First, you have to enable the geocoding function inside your config.php : $config['leaflet']['geocoding'] = true; The geocoding functionnality is based on the service provided by the OpenStreetMaps community : www.openstreetmap.org. Then, in your .md content files you can use the meta…