开发者

Way to replace field in views to image by hook instead of using template

开发者 https://www.devze.com 2023-02-23 00:43 出处:网络
Is there a way to replace the value in view of a field to image? i.e: value = 101, so display <img src=/myf开发者_高级运维iles/101.gif> in hook / theme_() function instead of using a .tpl file

Is there a way to replace the value in view of a field to image?

i.e: value = 101, so display <img src=/myf开发者_高级运维iles/101.gif> in hook / theme_() function instead of using a .tpl file?


If you are using Views you can simply change the settings of the field in a similar fashion to:

Way to replace field in views to image by hook instead of using template

0

精彩评论

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