Hi all,
First of all, great product!
For a customer, I was looking for a simple way to allow content editors to easily add a Google Map so they could include this on any page they'd like - for example - on a 'Contact Us' page or so. I have been looking around on this forum, but really couldn't find anything that was easily implementable by someone without any technical knowledge what-so-ever (my customer).
I'm seeing the addition of a simple Google map as a content thing so I didn't want to create a Silverstripe Module that created a new Page Type as the editors needed the flexibility to add a map to any page type / content. Keeping this in mind, I decided to have a go at adding an 'insert Google Map' button to the CMS TinyMCE editor.. this seemed to make the most sense. This also opened up a whole can of worms as the editor does not allow you to add a script block to the content (I would have to hack core ss files to make this possible). I therefore came up with a 'Progressive Enhancement' solution which basically means that TinyMCE adds a Div with some additional information about the map to show - and that a script is loaded that finds out if the current page has a googlemap-div and if yes - loads the appropriate script libraries and creates the map on the fly. This also means that the actual map is not shown in the content pane of the CMS (it just shows a grey placeholder div).
I have a BETA version of this 'plugin' (no use calling it a module) available for anyone who would like to have a go at this thing or thinks they could use this functionality. It should be completely theme independent. Once a map has been added to the content, you should be able to change themes in _config.php and the map will (should) still work without any additional configuration.
The zipped files + (simple) installation instructions are available for download at http://www.europehosting.com/download/Google-Maps-v0.1beta.zip
The installation should take about 2 minutes max ;-) I kept it as simple as possible and prevented having to touch Core silverstripe stuff.
Any feedback/suggestions appreciated!
Best Regards,
Mike.