टेम्पलेट views-view-unformatted.tpl.php
शुभ संध्या।
एक सवाल उठता है, पहले सभी चित्र (field_gallery_country) सभी नोड से निकालने की आवश्यकता है, फिर सभी विवरण (field_2) और इसी तरह।
टेम्पलेट views-view-unformatted.tpl.php में शामिल है
<?php
/**
* @file
* पंक्तियों की सूची प्रदर्शित करने के लिए डिफ़ॉल्ट सरल दृश्य टेम्पलेट।
*
* @ingroup views_templates
*/
?>
<?php if (!empty($title)): ?>
<h3><?php print $title; ?></h3>
<?php endif; ?>
<?php foreach ($rows as $id => $row): ?>
<div<?php if ($classes_array[$id]) { print ' class="' . $classes_array[$id] .'"'; } ?>>
<?php print $row; ?>
</div>
<?php endforeach; ?>
दुर्भाग्यवश यह त्रुटि देता है, जब मैं <?php print $row; ?> के बजाय निम्नलिखित को निकालता हूँ
print $row->_field_data['nid']['entity']->field_gallery_country[und][0]['filename'];
मैं क्या चूक रहा हूँ, कृपया बताएं :)