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) »
  • Show employer (organisations) and their employee (individuals)
Pages: [1]

Author Topic: Show employer (organisations) and their employee (individuals)  (Read 863 times)

Simon147

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.30
  • MySQL version: 5.0.92
  • PHP version: 5.2.9
Show employer (organisations) and their employee (individuals)
December 05, 2010, 05:53:47 am
Hello all,

So I've created a profile list showing all the member organisations in our database. Now, in addition to this, I would like to show for all these member organisation their employees.

If you want to have a look: Here's my member organisations list: http://asca-vabs.ch/de/civicrm/profile?force=1&gid=8

When I click on the organisation's name, I get to the contact details. There I would like to add the list of the employees of the organisation.

Any ideas on how to do this? 

Simon

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Show employer (organisations) and their employee (individuals)
December 05, 2010, 07:51:46 am
This can be implemented using pageRun hook. So basically based on contact id you retrieve associated relationship and then assign to template and display it using custom template feature.

Hth

Kurund
Found this reply helpful? Support CiviCRM

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Show employer (organisations) and their employee (individuals)
December 07, 2010, 02:31:53 am
You should also check http://civicrm.org/node/604

Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Show employer (organisations) and their employee (individuals)
December 07, 2010, 07:17:28 am
Hi,

Probably easier to do that using a custom template for the profile, and {crmAPI} to fetch the related contacts (employees of)

http://en.flossmanuals.net/CiviCRM/DevelopAPI

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Simon147

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7.30
  • MySQL version: 5.0.92
  • PHP version: 5.2.9
Re: Show employer (organisations) and their employee (individuals)
December 07, 2010, 02:05:23 pm
Hello Kurund and Xavier,

Thanks for your suggestions. I've considered both of them as I have considered using "views". However, Having not enough time nor the necessary knowledge (I've never done any PHP programming, nor ever worked with views), I'm actually currently looking for some professional developper who could do this for us. If you're interested, I'd appreciate if you could send me an offer. I'd be glad to share the solution here once it's implemented.

Regards

Simon

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Show employer (organisations) and their employee (individuals)

This forum was archived on 2017-11-26.