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 specific CiviCRM fields in Drupal custom profile
Pages: [1]

Author Topic: Displaying specific CiviCRM fields in Drupal custom profile  (Read 2313 times)

farbman

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Displaying specific CiviCRM fields in Drupal custom profile
February 15, 2009, 11:49:39 am
Hello all,

Is it possible to display specific CiviCRM fields in a Drupal custom profile?  I know how to set up a CiviCRM profile to allow editing of fields through the Drupal profile.  But, I am looking to display some fields in the Drupal VIEW profile area.

Alternatively, does anyone know how to access the CiviCRM record ID for the currently logged in Druapl user?.  I could just put a link to a CiviCRM profile if I had that information.

Thanks,
Eric

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: Displaying specific CiviCRM fields in Drupal custom profile
February 15, 2009, 03:32:09 pm

if you create a profile with a used for setting: "My Account", it gets exposed in the user's user account

You can also collect CiviCRM information by using the setting: "User Registration"

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

farbman

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Displaying specific CiviCRM fields in Drupal custom profile
February 15, 2009, 06:21:23 pm
I am not trying to collect information.  I want to display it.  If I expose a profile, it will display all of that profiles fields on my standard Drupal VIEW (not edit) page.  But, I am trying to use a Custom VIEW profile page and want to call only specific fields on the VIEW (not edit) page.

Eric

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: Displaying specific CiviCRM fields in Drupal custom profile
February 15, 2009, 06:27:58 pm

you can use the api function: civicrm_uf_match_id_get (api/v2/UFGroup.php)

to get the contact id, given a drupal user id

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

farbman

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: Displaying specific CiviCRM fields in Drupal custom profile
February 16, 2009, 11:04:45 am
Thanks very much!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Displaying specific CiviCRM fields in Drupal custom profile

This forum was archived on 2017-11-26.