Does CiviNode makes nodes out of CiviEvents?

cpelham - November 23, 2007 - 03:46
Project:CiviNode And Civinode CCK
Version:5.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I'd like to use CiviEvents for event registrations but I'd rather not have to double enter my event descriptions as Drupal nodes in order for them to be available to Views to post calendars and lists of them, etc. I know that CiviNode makes Drupal nodes out of individual CiviCRM contact, but does it also make nodes out out of CiviEvents?

#1

Torenware - November 23, 2007 - 04:20

Not yet. Mostly, I'm looking for a customer who will fund the work. I don't think it would be too hard, since the CiviCRM APIs for events are probably getting pretty stable round now.

#2

MacRonin - November 23, 2007 - 04:43

Subscribing since this is something I would also be interested in. Especially if I can expand the node with additional CCK fields when using it in Drupal. I haven't dug into CiviNode yet, but the comments made it sound like that might be possible for contact nodes currently.

But either way, thanks for the work so far.

#3

westwesterson - December 10, 2007 - 08:46

This would be great. I am also subscribing.

#4

cpelham - December 19, 2007 - 19:32

How much money would it take to fund the development of this feature? I am asking here, if you don't mind, because I am thinking I will not be able to pay for it by myself, but perhaps those of us interested could each contribute? I've always wondered why each Drupal module does not have an organized contribution system like that.

#5

sonicthoughts - January 7, 2008 - 02:42

I'm subscribing also - civinode support for civi-events would be a GREAT feature!

#6

sonicthoughts - January 7, 2008 - 04:53

Can anyone think of a work-around?

#7

DaveNotik - January 17, 2008 - 18:46

Subscribing. Who can build this?

Provide an estimate, Digital202 will consider funding something reasonable.

#8

sonicthoughts - March 10, 2008 - 20:22

Still searching for a way to turn civievent into a custom node type so it can be displayed as a view. Thought perhaps there was a way to use ICal and at least get the title and time.

I was wondering if anyone had either:
1. created an estimate / spec
2. found a workaround
3. secretly built this and will surprise me :)

S.

#9

jimi089 - March 20, 2008 - 23:41

Subscribing. Has this moved along at all? Seems like a lot of interest.

#10

sonicthoughts - March 23, 2008 - 23:01

We now have 6 people interested in this feature - will people pitch in for it? I'm at a non-profit but we could afford a $150 bounty for this. any other takers?

#11

jimi089 - March 24, 2008 - 01:39

I will have to check with my boss for an exact amount, but I know we can chip in. Assume at least that much, $150 from me.

#12

cpelham - March 24, 2008 - 02:15

I would put up $150.

With CCK on the path to becoming fundamental to Drupal 6 and beyond, I wonder what kind of node CiviEvents should be made into. Into Event module nodes? Or into CCK nodes? or what? Will Event module likely be deprecated in favor of CCK?

#13

jgerrish - April 30, 2008 - 05:42

I've attached a preliminary version of a module to create Drupal Event nodes when CiviEvent events are created. In addition, it provides a single CCK field for including CiviEvent events in your normal Drupal content.

The module works with Drupal 5.x and CiviCRM 2.x

There are still some problems with it:

- Timezones are wonky
- The CiviCRM event hook is broken, so I can't tell whether an event is being created or edited

I made this a separate module because I wasn't sure of the status of the CiviNode module. Is it going to be updated to work for CiviCRM 2.0? I'd love for this to get integrated into CiviNode.

AttachmentSize
civieventnode-5.x-1.x.tar_.gz 5.56 KB

#14

leoklein - May 2, 2008 - 15:13

Subscribing (how I wish Civicrm were better integrated into Drupal).

#15

joachim - July 21, 2008 - 11:24

I've gone for the opposite approach to jgerrish: I'm working on a module that creates a CiviEvent when you create a Drupal node of a certain type.
Will post here when it's ready...

#16

Adam.A - July 31, 2008 - 12:06

Hi jgerrish,

I am having trouble implementing your module, it seems like the attachment civieventnode-5.x-1.x.tar_.gz contains only the file civieventnode-5.x-1.x.tar_.gz which consists of one page of code.

dose this module require the CIVI node module as well?

-Adam

#17

joachim - September 17, 2008 - 14:34
Status:active» needs review

Here's my module.
You make the nodes in Drupal and the Civi event is created for you. It implements a vocabulary for the different event types from Civi.

AttachmentSize
civi_event.zip 7.95 KB

#18

rgs - November 21, 2008 - 13:41

This module would be a real lifesaver but I'm not able to get it to work.

Keep getting error messages:

Missing require fields ( title, event type id,start date)
3 event matching input params

Have created the above fields in content, live event but still nothing. Have installed date module. Am at a loss. Any help would be much appreciated. Thanks.

#19

joachim - November 21, 2008 - 16:01

Does it give you a line number for that error?

#20

greenbeans - December 28, 2008 - 21:53

joachim, what versions of Drupal and CiviCRM does your module work with?

#21

joachim - December 31, 2008 - 10:21

Drupal 5.x and the corresponding CiviCRM.

#22

greenbeans - January 25, 2009 - 04:04

I've run joachim's module through Deadwood, and here are the results. Note that this will NOT work out of the box, as there are several TODOs that need to be fixed first, including a few mistakes by Deadwood that I've commented as TODOs but not fixed yet. I also have no idea whether this will work with CiviCRM 2.1, which is my current version. I'll begin ironing out the kinks over the next few days.

I'm still a little new to CiviCRM, and have never migrated a Drupal module before, so any tips would be much appreciated

AttachmentSize
civi_event.zip 9.88 KB

#23

greenbeans - January 25, 2009 - 20:16

OK, here's an updated version. It works for adding and editing events in Drupal 6.8 / CiviCRM 2.1.4, and I tweaked it a bit to avoid overwriting any changes made to the event through the CiviCRM admin interface. Event deletion hasn't been implemented. And you will have to add a CCK Date field to the "Live Event" content type to handle the event start date. If you call this field anything other than field_event_date, you must update the define() call at the top of the module to indicate the correct field name.

Also included is an Event.tpl.php designed to prevent the user from making changes to the event through CiviCRM that wouldn't get propagated to the Drupal Event node. This requires adding the following to your CSS somewhere:

.structural { display: none; }

The file should be placed in {path-to-civicrm-custom-templates}/CRM/Event/Form/ManageEvent

AttachmentSize
civi_event.zip 9.57 KB
 
 

Drupal is a registered trademark of Dries Buytaert.