有以J文章介紹的圖像,因爲1.7.5和現在最新的2.5.3 你需要的是改變component_content默認設置,
你可以做到這2種方式,編輯在yourinstall的意見/組件/ com_content /視圖/
或使用模板覆蓋,你首先需要,如果你的模板使用替代否則要知道,如果你在組件本身,你將不會看到改變編輯組件意見。
驗證這一點,到 SITE_NAME /模板/ TEMPLATE_NAME/HTML文件夾,並檢查是否有文件夾名稱 com_content,
,如果這是不是你的模板的情況下,使用替代和任何編輯應該做的
現在波谷不存在通過組件的實際代碼
這是 部件\ com_content \視圖\功能\ TMPL \ default_item.php(THIS我DEFAULT FRONTPAGE ARTICLE VIEW)
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?>
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>
<?php endif; ?>
所有你需要做的是環繞IMG標籤的元素與readmore鏈接這樣
<a href="<?php echo $this->item->readmore_link; ?>">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</a>
不要忘了,如果有模板覆蓋的com_content您沃爾德需要編輯功能/裏面有default_item.php
什麼介紹圖像?您是否在閱讀更多行上方的內容區域放置圖像? – 2012-03-13 22:37:53