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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Displaying custom field data sets with Profile...?
Pages: [1]

Author Topic: Displaying custom field data sets with Profile...?  (Read 319 times)

revjhb

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.5 beta5
  • CMS version: Joomla 3.3.3
  • MySQL version: 5.5.38
  • PHP version: 5.5.9
Displaying custom field data sets with Profile...?
August 25, 2014, 08:20:13 am
To all,

I hope this isn't too simple a question but I would like to display all custom data sets tied to a Contact with the set Profile view. What would be the best way to do this? I have been trying to do this within smarty tpl incorporating either the API or the code from the MultipleRecordsFieldsListing.tpl but have been unsuccessful so far. Your help is much appreciated.

JHB

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Displaying custom field data sets with Profile...?
September 01, 2014, 08:19:22 pm
My impression was that the code for MultipleRecordsFieldsListing only supported one multi-value custom data-set at a time. In CiviHR, we had a somewhat similar issue in that we wanted a single page (ie the "View Contact" page) to include subsections (tabs) for several multi-value custom data-sets ("Identification", "Career", and "Medical"). The basic work-around was:

 1. Create a few custom data-sets (eg "Identification", "Career", "Medical")
 2. Create corresponding profiles (eg "Identification Profile", "Career Profile", "Medical Profile") -- one profile for each multi-value custom data-set.
 3. Add a separate, AJAX-based tab for each profile (e.g. "http://civihr.sandbox.civicrm.org/civicrm/profile/edit?reset=1&gid=17&id=222&snippet=json&onPopupClose=redirectToTab" -- in fairness, this was a bit easier because we could use the existing screen "View Contact" screen which already supported AJAX tabs).

(You can see this live by logging into http://civihr.sandbox.civicrm.org/ . Run a search for all contacts and view an arbitrary one. Open Firebug's console. Click the tabs watch the requests in Firebug.)

Perhaps you could use some AJAX to accomplish a similar trick?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Displaying custom field data sets with Profile...?

This forum was archived on 2017-11-26.