Canvas Palette - 让它色彩缤纷🎨
Canvas Palette — 拖入模块,添加视频,再添一抹色彩——无需设计学位。
额外区块类型 (EBT) - 全新的布局构建器体验❗
GLightbox is a pure javascript lightbox (Colorbox alternative without jQuery)❗
It can display images, iframes, inline content and videos with optional autoplay for YouTube, Vimeo and even self-hosted videos.
视图模板 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'];
我遗漏了什么,请您指教 :)
- 登录 发表评论