新建欄目,欄目設(shè)定不顯示,自定義圖片字段 image
首頁調(diào)用不顯示
{content module=h id=12 return=home}
<?php if ($home['lunbotu']) { $key=0; foreach ($home['lunbotu'] as $c) { ?>
<img src="{dr_get_file($c)}" class="img-fluid" alt="">
<?php $key++;} } ?>
{/content}其它字段都可正常顯示
{/content} 后面加一個 {$debug_home}因為你循環(huán)標簽嗯加了return這個參數(shù)。所以他要加后綴。開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
標簽解析:{content module=h id=12 return=home} 當前路由:home/index 動態(tài)地址:index.php? 變量前綴:home 總記錄數(shù):1 分頁功能:未開啟 可用字段:id、catid、title、thumb、keywords、description、hits、uid、author、status、url、link_id、tableid、inputip、inputtime、updatetime、displayorder、content、_inputtime、_updatetime你仔細觀察一下它的可用字段里面根本就沒有這個lunbotu字段呢。
content標簽調(diào)用的是h模塊下面12號文章內(nèi)容的數(shù)據(jù) ,
所以我懷疑你是用錯了標簽。
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
標簽解析:{content module=h id=12 return=home} 當前路由:home/index 動態(tài)地址:index.php? 變量前綴:home 總記錄數(shù):1 分頁功能:未開啟 可用字段:id、catid、title、thumb、keywords、description、hits、uid、author、status、url、link_id、tableid、inputip、inputtime、updatetime、displayorder、content、_inputtime、_updatetime前面改字段忘記啟用了
欄目模型字段加參數(shù) more=1
新建的IMAGE用什么字段調(diào)用,首頁上調(diào)用
回復@小波工作室 加在哪里?
不用內(nèi)容調(diào)用了,直接加到項目字段里了。