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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Making Event locations customisable and manageable
Pages: [1]

Author Topic: Making Event locations customisable and manageable  (Read 1320 times)

mattgibson

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
    • University of London Computer Centre
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: 5.0.77
  • PHP version: 5.3.1
Making Event locations customisable and manageable
March 10, 2011, 07:12:23 am
I need to extend the CiviCRM events system so that:

1. Custom fields can be added to event locations
2. Locations can be viewed as a list, allowing them to be editied individually without going through a particular event

My questions are:

a. I can't see anything like this on the roadmap - have I missed it or is this just not on the radar right now?
b. If I were to code this myself (Pro coder, but new to CiviCRM) what would be the best approach in order to ensure it becomes a candidate for inclusion in core and how much time/effort is it roughly likely to involve?
c. In looking at this, I've been surprised that event locations are not organisational contact types - is there a reason for this?

All input appreciated!  :)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Making Event locations customisable and manageable
March 10, 2011, 08:42:27 am
Why don't you add the custom fields to the event? as there is a 1-1 relationship between events and locations, that's be the same result isn't it ?

As for using the address of a location as an address of the contact where the event is hosted, or creating a contact for the venue if it doesn't exist, make sense. One reason, might be that you don't want to change the address of a previous event, event if the org cthat hosted it hanges its address.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

choster

  • I’m new here
  • *
  • Posts: 29
  • Karma: 2
    • Lattice Group
  • CiviCRM version: 4.3,4.4,4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.39
  • PHP version: 5.5.15
Re: Making Event locations customisable and manageable
March 17, 2011, 01:10:33 pm
A workaround we are studying with is to create event venues as contacts (either as Organizations or as a new sub-type). Then, we'd add a custom field to the Event which is a contact reference to the venue. The template would then check to see if the venue is defined or not. If so, we'd retrieve that information and display it as the location. If not, we fall back on the location information provided in the event information settings.

There is location-related information beyond the address and phone number of a venue. Ideally we'd be able to set things like parking information, reception/security/front desk instructions, public transportation options, or URL in one place rather than having to associate them every time we have an event at that venue.

miko

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.77
  • PHP version: 5.2.11
Re: Making Event locations customisable and manageable
April 12, 2011, 08:14:05 pm
I am looking at the solution in the last comment: I created an organization subtype of "Venue" and then create a custom data field that's a contact reference, but my problem is that in the input type field you can't restrict autocomplete to organization type of venue?  Or at least of organization?  Is there a way to do this?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Making Event locations customisable and manageable
April 12, 2011, 08:17:35 pm

There is a CiviCRM Make it Happen (MIH) to add this feature in 4.1 (if it gets funded sooner, we might consider doing it in 3.4.x). Would be great if your org / your client can chip in and help make it happen

http://civicrm.org/mih#contactref

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

miko

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 2
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.77
  • PHP version: 5.2.11
Re: Making Event locations customisable and manageable
April 14, 2011, 11:12:15 am
I can't get the Special Olympics to fund any CiviCRM projects before their new sie goes live and proves that CiviCRM was a good choice, but $1500 seems like too small of a dollar amount to be holding back this programming when over half the money has been raised!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Making Event locations customisable and manageable
April 14, 2011, 11:44:00 am

If we find someone (or someone volunteers to do it) for the current amount, great.

If you'd like to get started on it, ping us on IRC (http://webchat.freenode.net/?channels=#civicrm) and we'll get u going

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Making Event locations customisable and manageable
April 14, 2011, 04:11:34 pm
miko, if you can code, there is a hook to restrict the contacts returned hook_civicrm_contactListQuery.

There is also a template+jquery option:

http://civicrm.org/blogs/xavier/how-customise-contact-reference-custom-field

Not as easy as it will be after the mih, but possible.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Making Event locations customisable and manageable

This forum was archived on 2017-11-26.