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 Drupal Modules (Moderator: Donald Lobo) »
  • drupal node + civi event
Pages: [1]

Author Topic: drupal node + civi event  (Read 2891 times)

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
drupal node + civi event
September 26, 2010, 07:58:12 pm
Hi,

I have been trying to integrate civi and with my drupal content with no success.

My process right now is I create a event in civi and it shows up on the site via the civi provided views as a block. Then I create a story node with the same information to get displayed in a view 'featured' block on the frontpage.

I created a new content type called "story events", that has the same fields as both as the "story" and the "civi activity." I was able to expose this to my 'featured' block but it will not display in the civi blocks.

Is what I am trying to do, possible or am I opening a can of worms?

Thanks in advance,
Hector

Here is a link to my site,
http://www.latinoequalityalliance.com/

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: drupal node + civi event
September 26, 2010, 08:17:12 pm
So are you creating the nodes and basically using them to recreate the data you have in civicrm? Not clear to me quite what is being attempted here.

Have you looked at making this Block for your front page from Views? Make a Views based on CiviEvent. You should get what you need.
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

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: drupal node + civi event
September 26, 2010, 10:14:21 pm
Hi Peter,

Sorry about the confusion, I wouldn't say I am recreating the node as I am expanding on the information from civi.

Here is my drupal node.
http://bit.ly/cLK8JV

And here is the same content from civi.
http://bit.ly/aFZOaa

What I would like to have happen is either create a content-type that would record to both civi and drupal or create a view that would share common information from both records, to avoid redundancy. In theory this would allow the content to show up in the civi upcoming events block, followed by the past events block while still showing it in the featured view with minor or no modification.

I have tried creating a view, but if I create a view based on civi activities I am not able to get node information. And if I create a node based view I am can't view civi fields.     

I hope this made some sense.

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: drupal node + civi event
September 27, 2010, 06:21:30 am

basically nodes and contacts are two distinct seperate entities. Hence u cannot combine the two

however u might be able to use the CCK / CiviCRM Contact Reference field and link the two (not done it, just speculating a bit here). In this case there is a field in the node that matches with a contact

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

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: drupal node + civi event
September 27, 2010, 01:23:06 pm
We used a cck field that provides a link through to the civievent so that the node would have a nice 'enrol now' button showing on the drupal node, which linked to the reg'n page - but yes it did involve duplication of details.
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

marketman

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
Re: drupal node + civi event
October 05, 2010, 09:47:50 pm
Thank you Peter and Lobo for your help.

Peter, can you explain how you created this cck field, to link to the civievent?

The more and more I think about it, I do see where I need to be redundant with the data input. But at the same time I wondering if it might be easier to add or expand the civievent fields to mimic my drupal story node. 

Quote from: peterd on September 27, 2010, 01:23:06 pm
We used a cck field that provides a link through to the civievent so that the node would have a nice 'enrol now' button showing on the drupal node, which linked to the reg'n page - but yes it did involve duplication of details.

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: drupal node + civi event
October 06, 2010, 03:12:32 am
Hey Mr M

So the Drupal content type 'event' had a cck text field in to which the civi event url was pasted - and the rest was done via css from memory so that it fired up as a button with link to the civi registration page
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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • drupal node + civi event

This forum was archived on 2017-11-26.