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) »
  • Getting relationship custom data fields in Profile
Pages: [1]

Author Topic: Getting relationship custom data fields in Profile  (Read 1058 times)

ralph.devlin

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Getting relationship custom data fields in Profile
November 22, 2010, 02:51:13 pm
what is the easiest way to get relationship fields that I defined in custom data to appear as an field option in Profiles? I see contacts and other fields, but not anything about relationships. Thanks

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: Getting relationship custom data fields in Profile
November 22, 2010, 04:46:04 pm

you will need to do this via hooks and customized templates. This is a limitation with profiles and cannot do this via the UI

the civischool blog posts describes one such implementation

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

ralph.devlin

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Getting relationship custom data fields in Profile
November 23, 2010, 12:06:31 am
Thanks Donald, with my implentation the user will register using the custom civicontribution page and membership. Will I still need hooks if it starting with that page, or could I just modify the template to expose the relationship fields. Do you possibly have a cookbook that explains what steps you took to do that for SF School or what files I should be looking at changing? I just want help getting in the right direction. any help you can give would be great.

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: Getting relationship custom data fields in Profile
November 23, 2010, 06:24:48 am

yes, u'll still need to implement hooks and customized templates. Some good links:

http://en.flossmanuals.net/CiviCRM/DevelopIntro
http://wiki.civicrm.org/confluence/display/CRMDOC32/Customize+Built-in,+Profile,+Contribution+and+Event+Registration+Screens
http://civicrm.org/architecture
http://civicrm.org/civischool

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Getting relationship custom data fields in Profile

This forum was archived on 2017-11-26.