迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費且不限制商業(yè)使用,是免費開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
先循環(huán)主題再循環(huán)評論內(nèi)容怎么寫這樣的語句?
比如:
我要在列表中調(diào)用產(chǎn)權(quán)人的帖子回復(fù)一,回復(fù)二
我用
{php $field = dr_field_options($ci->module['field']['comment']['id']);} {$t.content}
這樣的方式調(diào)用不出來。
我的整體循環(huán)代碼是:
{module module=wenda catid=17 num=340 more=1 join=1_wenda_data_0 on=id order=inputtime}
<div class="table-row">
<div class="table-cell"><span class="tag4">編號:{$t.id}</span></div>
<div class="table-cell"><a href="{$t['url']}" target="_blank">{$t['title']}</a></div>
<div class="table-cell">{$t.author}</div>
<div class="table-cell">{dr_date($t['_jcnf'], 'Y')}年,{$t['cengshu']}層,{php $field = dr_field_options(218);} {$field[$t['fangwujiegou']]}</div>
{comment module=wenda join=1_wenda on=id order=inputtime num=3}
<div class="table-cell">{$t.content}</div>
{/comment}
<div class="table-cell">{dr_date($t['_updatetime'], 'Y-m-d')}</div>
</div>
{/module}
要使這個comment標簽調(diào)用編號{$t.id}的回帖
{comment module=wenda cid=$t.id order=inputtime num=3 return=tt} <div class="table-cell">{$tt.content}</div> {/comment}
{module module=wenda catid=17 num=340 more=1 join=1_wenda_data_0 on=id order=inputtime}
<div class="table-row">
<div class="table-cell"><span class="tag4">編號:{$t.id}</span></div>
<div class="table-cell"><a href="{$t['url']}" target="_blank">{$t['title']}</a></div>
<div class="table-cell">{$t.author}</div>
<div class="table-cell">{dr_date($t['_jcnf'], 'Y')}年,{$t['cengshu']}層,{php $field = dr_field_options(218);} {$field[$t['fangwujiegou']]}</div>
{comment module=wenda join=1_wenda on=id order=inputtime num=3}
<div class="table-cell">{$t.content}</div>
{/comment}
<div class="table-cell">{dr_date($t['_updatetime'], 'Y-m-d')}</div>
</div>
{/module}
要使這個comment標簽調(diào)用編號{$t.id}的回帖