I think that you have to add entries to the vardefs.php file and add entries in the relationship table. But I'm not sure if this is all you have to do.
Check how the contract-document relationship works.
modules/Documents/vardefs.php
PHP Code:
'contracts' => array (
'name' => 'contracts',
'type' => 'link',
'relationship' => 'contracts_documents',
'source' => 'non-db',
'vname' => 'LBL_CONTRACTS',
),
modules/Contracts/vardefs.php
PHP Code:
'documents' => array (
'name' => 'documents',
'type' => 'link',
'relationship' => 'contracts_documents',
'source' => 'non-db',
'vname' => 'LBL_DOCUMENTS',
),
And in the database table relationships is an entry for "contracts_documents".
Bookmarks