0

I have an image field and I would like to access the URI directly via PHP in views-view-fields.tpl.php

I tried:

echo $fields['field_foto']->raw;

but it seems to show just the nid and I want the uri of the picture...

apaderno
  • 28,547
  • 16
  • 75
  • 90
joerg P
  • 63
  • 1
  • 1
  • 5

1 Answers1

1

Have you tried using var_dump($fields) ? This is the best way to find out what's in it. You may also use the Devel module and use dpm().

Florian Margaine
  • 58,730
  • 15
  • 91
  • 116