Is it possible with views php to get field data from another row in the same view? If so how could you do it?

Thank you for your help!

Comments

jerrylow’s picture

Yup, you can include any other variable from another row that is included in your view.

When you configure you PHP row click on available variables then you can see all available options.

So if you have a row with the node title and you want to use that in your php row you could call:

print render($row->title)

liam morland’s picture

Issue summary: View changes
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.