07-26-2023, 09:21 PM
I googled, installed Devel, Drupal for Firebug, but I can't find it.
I found *what* I want, I know *where* it is; I just don't know *how* to get it.
I'll put this in code brackets, but Devel tells me the file name (which I want to stick into the .tpl.php file) is here:
<pre>
field_image (Object) stdClass
handler (Object) views_handler_field_field
view (Object) view
result (Array, 2 elements)
0 (Object) stdClass
_field_data (Array, 1 element)
nid (Array, 2 elements)
entity (Object) stdClass
field_image (Array, 1 element)
und (Array, 1 element)
0 (Array, 11 elements)
filename (String, 23 characters ) FILENAME.jpg
</pre>
So, how do I get that FILENAME.jpg to be output using PHP?
<?php print $something->other; ?>
I found *what* I want, I know *where* it is; I just don't know *how* to get it.
I'll put this in code brackets, but Devel tells me the file name (which I want to stick into the .tpl.php file) is here:
<pre>
field_image (Object) stdClass
handler (Object) views_handler_field_field
view (Object) view
result (Array, 2 elements)
0 (Object) stdClass
_field_data (Array, 1 element)
nid (Array, 2 elements)
entity (Object) stdClass
field_image (Array, 1 element)
und (Array, 1 element)
0 (Array, 11 elements)
filename (String, 23 characters ) FILENAME.jpg
</pre>
So, how do I get that FILENAME.jpg to be output using PHP?
<?php print $something->other; ?>