0
Normaly在Drupal 7,我們有node.tpl.php
:的Drupal 7:顯示圖像,而不是節點標題
<?php print render($title_prefix); ?>
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>>
<a href="<?php print $node_url; ?>"><?php print $title; ?></a>
</h2>
<?php endif; ?>
<?php print render($title_suffix); ?>
它正在$node_url
,並把它放在標題中的每個節點。
我有5個節點(頁)顯示:
- 首先
- 二
- 第三等
我已經創建的圖像First.gif
,Second.gif
我想加載圖片而不是標題。
我沒有檢查過各種實現,但沒有找到任何解決方案。
[更新]我曾嘗試編輯template.php
文件,並添加了用圖像替換標題的函數 - 如果圖像存在。我需要這個在Drupal 7中 - 請看這裏 - http://drupal.org/node/221854
有什麼幫助嗎?謝謝..