denny / ShinyCMS

ShinyCMS is an open source CMS. This is the Perl version, built with Catalyst and DBIC. (There is also a Ruby on Rails version: www.github.com/denny/ShinyCMS-ruby)
56 stars 24 forks source link

google map searches #56

Closed Hiranyaloka closed 8 years ago

Hiranyaloka commented 9 years ago

Hard-coded references to "http://maps.google.co.uk/q=" in: view_user.tt view_event.tt view_events.tt

Perhaps better to set by location, or in the site configuration. I set this in the shinycms.conf:

map_search_url https://duckduckgo.com/?q=

And then changed href="http://maps.google.co.uk/?q=

to:

[% c.config.map_search_url %]

Of course "Google Map" link text would need to be changed to "Open Street Map" or generic "View Map"