I want to change the output of a view. More precisely i want to reduce the resulting list to exact 3 matches: one specific row and its previous and next row.
As far as I understand I need to generate the whole list first, because otherwise i cant find the previous row. So I thought I have to do something in the views-view.tpl where all the rows will printed.
My question then is: How can I get the content of a specific field in each row in $rows so i can check for that specific row and its surrounding rows?
Or is there any better way?
ps. ( i am a php noob )