2 users online. Create an account or sign in to join them.Users

Search

I also normally write JS (jQuery) plugins that handle this but wanted to see how this works. It works fine but the issue with a utility like this is that it forces us to put quite a lot of 'stuff' (such as JS) in our templates…

And, as with multiple markers, any customization still needs to be done in Javascript.

Since Gmaps depend on Javascript jQuery could generate the map-container div's etc easily. The only 'challenge' would be to tie the Symphony content (from e.g. a Map Location field) to the JS, but that can be done with a little bit of inline JS or with e.g. a AJAX call to a custom XML 'API').

In my current setup I use this utility but I am thinking about going with a simple jQuery plugin instead since I rather keep my templates as clean as possible.

Would you mind sharing your plugin? How have you handled the coupling of the Symphony (location-) data to your JS?

The plugin is available to the public at http://github.com/designermonkey/Goomaps.

The project it was built because of was originally going to be Symphony, but due to my employers lack of interest in Symphony, it was built on Codeigniter. The idea to tie data in was to use a separate pages to output JSON in the format of the required options objects, using get parameters to call the pages, that way the URLs could be built in the XSL using the available data.

It is something I want to actually do in practice soon, and is also the reason I coded the Address Location field from other fields (Address, and Map Location v3). Sad thing is I never seem to find time to do these things ;o)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details