CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvents & Gmap in Drupal views
Pages: [1]

Author Topic: CiviEvents & Gmap in Drupal views  (Read 2647 times)

rjb

  • I post occasionally
  • **
  • Posts: 63
  • Karma: 2
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
CiviEvents & Gmap in Drupal views
February 11, 2011, 03:04:11 am
Here's a fun one (because it's Friday!):

Is there any way of using drupal views(2) to mark out all upcoming CiviEvents on a Gmap? I've tried adding a new view (base table: CiviEvents) but can't figure out the filters and arguments to use. Has anyone done this before?

Best,

RJB

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviEvents & Gmap in Drupal views
October 03, 2011, 08:45:44 pm
Same question ;-)

I was thinking of using the OpenLayers module for D7

I am keen to build a map of civievents

CiviEvents (and contacts) have their own LatLong fields.

I have a CiviEVent type View and can choose OpenLayers Map as one of the format options - but when I do I get

The selected style or row format does not utilize fields.

Hence unable to pull the civi lat/long data in.

Is this a case of a missing handler?

(have also flagged on drupal issues queue http://drupal.org/node/1275374)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviEvents & Gmap in Drupal views
October 04, 2011, 01:50:04 am
OKay - so this is all possible - has probably been done via other routes but am doing this using OpenLayers - i might put a 'how to' in a blog - but is basically a case of read the instructions
- http://drupal.org/node/1184270
- http://drupal.org/node/627816

with the key step being
- create 'civievent' type view
- add a Display of type 'OpenLayers Data Overlay' (which is the layer showing your civicrm data)
- setting the Format to be OpenLayers Data Overlay
- then go to settings for Open Layers and enable the "OVERLAY LAYERS" - that you just 'creaated' above - in the 'layers and styles' options under Maps (having cloned the default so you have a Map you can edit)
- then going back in to the Views
- creating a Page-type display, with Format set to OpenLayer Map and setting the Map to be the Map you just created in Open Layers
(so yes this does involve doing a 'loop' ie making something in Views, then making something based on it in Open Layers, then making something else back in Views based on that!!)

Hmm - maybe that is most of the blog just with out the pictures ;-)

And am certain above can be done for Contacts too. Nice.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

NASACT

  • I post frequently
  • ***
  • Posts: 289
  • Karma: 9
    • National Association of State Auditors, Comptrollers and Treasurers
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.58 (ubuntu)
  • PHP version: 5.3.5
Re: CiviEvents & Gmap in Drupal views
July 26, 2012, 06:45:54 am
This works for contacts, memberships and so forth as well. I have tested this method.
-AJ
My GChat - azon21@gmail.com -  This is where you can find me most days!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvents & Gmap in Drupal views

This forum was archived on 2017-11-26.