新建欄目,欄目設(shè)定不顯示,自定義圖片字段 image
首頁(yè)調(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} 后面加一個(gè) {$debug_home}因?yàn)槟阊h(huán)標(biāo)簽嗯加了return這個(gè)參數(shù)。所以他要加后綴。開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
標(biāo)簽解析:{content module=h id=12 return=home} 當(dāng)前路由:home/index 動(dòng)態(tài)地址:index.php? 變量前綴:home 總記錄數(shù):1 分頁(yè)功能:未開(kāi)啟 可用字段:id、catid、title、thumb、keywords、description、hits、uid、author、status、url、link_id、tableid、inputip、inputtime、updatetime、displayorder、content、_inputtime、_updatetime你仔細(xì)觀察一下它的可用字段里面根本就沒(méi)有這個(gè)lunbotu字段呢。
content標(biāo)簽調(diào)用的是h模塊下面12號(hào)文章內(nèi)容的數(shù)據(jù) ,
所以我懷疑你是用錯(cuò)了標(biāo)簽。
開(kāi)源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問(wèn)題!
標(biāo)簽解析:{content module=h id=12 return=home} 當(dāng)前路由:home/index 動(dòng)態(tài)地址:index.php? 變量前綴:home 總記錄數(shù):1 分頁(yè)功能:未開(kāi)啟 可用字段: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)用,首頁(yè)上調(diào)用
回復(fù)@小波工作室 加在哪里?
不用內(nèi)容調(diào)用了,直接加到項(xiàng)目字段里了。