开发者

Access file URI in Views tpl

I have an image field and I would like to access the URI开发者_JS百科 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...


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().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜