I have two content types account
and device
. device
has a reference field named reference_account_number
and it's referencing account_number
in account
, but the unique key for account
is a composite key account_number
and environment
.
I used auto node title module to generate the node title based on account_number
for account
, and let reference_account_number
map on to the node title of the account
nodes.
So my problem comes up when I try to do feed import when there are duplicate account_number
but different environment
. The reference_account_number
only map onto the account
node that has matching node title.
Is there any way to reference another node based on two fields?
I was thinking about adding a environment
field to device
content type as well
Ideally, I would like this scenario happens when a user creates a new device
content.
User enters the account number
and environment
, upon completion, user views the content just created, and reference account number
provides a link to all existing account
that matches the account number
user inputted for the device
content, same thing goes for environment
Thanks