Drupal Answers Asked by srodrig on November 25, 2021
I am working in my Row style template (views-view-fields--MYVIEW--block-1.tpl.php
). I need to get the file ID and path of an image. The image field is a multi field, so I need to get all of the images for each row. How do I do this?
I also will need to get the delta value of each image.
I try using kpr($variables) but I can’t click to expand:
The THEME_preprocess_views_view_fields(&$var)
function in the template.php
in your theme directory is get called just before loading the Row Views Template file. Every component of the current row is saved inside the $var
array.
To get what you need, simply just kpr($var)
and it gives you all of the information about the current row. You can also save these information in the $var
array as an index and use them later.
Answered by M a m a D on November 25, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP