Viewfield or View Attach Modules - Applying relationships?

aww - October 27, 2009 - 06:55

Hi,

I've been battling what seems like a very simple procedure to display nodes from two different content types. I'm using the viewfield, view attach, CCK, and Content Profile modules to try to display all fields of a node and a related field from another node. Here's my setup:

Client User Profile
|__ Company (Node Module Form)
|__ Contact (field_contact)
|__ Payment Info (field_payment)

Job
|__ Client (field_job_client | Node reference)
|__ Assigned To (field_job_assigned_user | User reference)
|__ Description (field_job_description | Text)

The business process goes something like this: A new client logs in and fills out his/her user profile, including any payment terms, such as hourly wage, mileage, etc. Then the client is able to create jobs, or projects, and make them available to other users (that have the role of technicians.) So, these technicians will be able to view multiple jobs from the client, and each job will display a single instance of the payment terms.

For this purpose, I've tried using the Viewfield and Views Attach modules (in turns) to 'connect' the job to the job's author's payment info field. This is working except that each job is displaying all other client's payment info- whereas it should only display one record: That which belongs to the job's author. I have tried just about every argument combination- and searched far and wide for answers on properly implementing arguments, but I cannot make this work.

Here's some screenshots of the job and view display:

http://visualis.us/stage/tmp/index.html

Any information a kind-hearted guru can shed on this issue will be greatly appreciated!

Thank you.

Problem Solved

aww - October 27, 2009 - 17:29

Hi all,

For anyone who had contemplated posting a recommendation to this problem... Thank you.

The reason Views Attach did not work with any combination of arguments is because I have the Pathauto module. This obviously deletes the nid from the path. So I simply configured Pathauto to create the the nid token as a default for job nodes.

Whew! Two days of hair-pulling just to bump into the obvious.

 
 

Drupal is a registered trademark of Dries Buytaert.