What is the best (or recommended) way to display related organization information in a profile? I use organizational membership so after registration I have an individual record (with Drupal account) and an organization record (related to the individual).
I use Civi profiles to display stored information to my users. It's easy and straightforward when showing the individual's own data. But a profile that shows the related organization's data is what I'm looking for - right now the profile shows empty fields.
I came up with one solution: if I add
id=[org_contact_id] to the profile view url, everything is OK. To get Drupal to generate proper link in menu, I'm planning to use
menu hook and through CiviCRM API find user's related organization contact id. It seems complicated though (for such a simple task).
Is there an easier way to do that?