I have a content type called "news", which contains press release items.

Each press release has a title, synopsis, body content, and (optionally) an attached PDF file.

I need to theme it such that if a press release has body content, clicking on the title in the list will show the body text (I have this area working). If the release has an attached PDF file, however, the body content will be ignored, and the PDF file will be opened in a new window.

I'm pretty sure I should override views-view-fields.tpl.php somehow, but I can't seem to access a reference to the attached file to (a) check if a file attachment exists, and (b) to create a link out of the attached file so that I can produce the list of news items with either internal or external links as defined by the content.

All help appreciated!

Pete.