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 Profiles (Moderator: Dave Greenberg) »
  • Displaying civicrm contact's fields in drupal 7 registration and profile edit
Pages: [1]

Author Topic: Displaying civicrm contact's fields in drupal 7 registration and profile edit  (Read 1003 times)

riswana123

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: Drupal 6
  • MySQL version: 5.3
  • PHP version: 5.5
Displaying civicrm contact's fields in drupal 7 registration and profile edit
October 27, 2014, 12:05:14 am
Hi,
   I am using Drupal 7 with civicrm 4.5. I want to display the civi contact fields in drupal registration and profile forms. I used the civicrm profile to display the first name and last name fields. But i don't know how to integrate the address, phone and email fields same as civi in drupal(For ex for address with Another address  , Location type  selection boxes , street address, Delete etc). Using civicrm profile i could be able to configure Home street address etc as a individual ones. But i want as a grouped one how civi is displaying. Is there any module available for this? Any help is highly appreciated. Thanks in advance
« Last Edit: October 27, 2014, 04:00:31 am by riswana123 »

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: Displaying civicrm contact's fields in drupal 7 registration and profile edit
October 27, 2014, 11:53:49 am
Hi - to help clarify, on the Drupal user page you want to have - for example the below - ie so all the addresses that are on record for the person are shown - and the user can 'empty' some of these address sets?

Home Address
- Street (edit)
- City (edit)
- Country (edit)
--- x Delete this address

Postal Address
- Street (edit)
- City (edit)
- Country (edit)
--- x Delete this address

Work Address
- Street (edit)
- City (edit)
- Country (edit)
--- x Delete this address
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

riswana123

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: Drupal 6
  • MySQL version: 5.3
  • PHP version: 5.5
Re: Displaying civicrm contact's fields in drupal 7 registration and profile edit
October 27, 2014, 10:35:54 pm
Hi petednz,

   Yes. You are correct. I want like that only in the front end drupal page. Can you suggest how i will achieve this?

   Addresses: Add(Link)
   Home Address
- Street (edit)
- City (edit)
- Country (edit)
--- x Delete this address

Postal Address
- Street (edit)
- City (edit)
- Country (edit)
--- x Delete this address

Work Address
- Street (edit)
- City (edit)
- Country (edit)
--- x Delete this address
« Last Edit: October 27, 2014, 10:42:14 pm by riswana123 »

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: Displaying civicrm contact's fields in drupal 7 registration and profile edit
October 27, 2014, 10:47:14 pm
Nothing you can do out of the box.

The closest you could get without coding is probably using the webform-civicrm module - and then deploying the form as a block on the /user pages.

Let us know how close that gets you. The documentation for that module is pretty thorough.

I think where it won't do the required is for the 'delete location type' but Coleman is very open to bribes usually
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

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Displaying civicrm contact's fields in drupal 7 registration and profile edit
November 17, 2014, 03:14:34 pm
A different approach might be to use https://www.drupal.org/project/civicrm_entity Which should now support entity updates.  I have not played with editing yet, but theoretically, you can pass the entity id and edit the field directly in drupal.  Naturally, you would need to manage permissions, validation, etc.

For the delete, you could consider using rules and the rules_link module to trigger the delete action. I have not done this myself, but certainly seems like a good use case. You can pretty much trigger any php / civicrm api call too.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Displaying civicrm contact's fields in drupal 7 registration and profile edit

This forum was archived on 2017-11-26.