开发者

Access file URI in Views tpl

开发者 https://www.devze.com 2023-03-20 22:24 出处:网络
I have an image field and I would like to access the URI开发者_JS百科 directly via PHP in views-view-fields.tpl.php

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

精彩评论

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

关注公众号