聯(lián)系官方銷(xiāo)售客服
1835022288
028-61286886
模板標(biāo)簽里面
{module catid=$catid order=updatetime page=1}
{$t.content}
{/module}
{$t.content} 無(wú)法讀取文章內(nèi)容如何解決
官方提醒:使用module內(nèi)容循環(huán)標(biāo)簽的生成工具,填寫(xiě)參數(shù)就可以生成相關(guān)的代碼,每個(gè)參數(shù)后面都有用法解釋
參考文檔:《列表循環(huán)中調(diào)用模塊附表字段(內(nèi)容字段在列表顯示)》
回復(fù)@迅睿框架聯(lián)合創(chuàng)始人 請(qǐng)問(wèn)一下帝國(guó)的轉(zhuǎn)化工具什么時(shí)候可以出呢?
試試這幾個(gè)
普通輸出:{$t['content']}
去掉html標(biāo)簽:{dr_clearhtml($t['content'])}
去掉html標(biāo)簽再截10個(gè)字:{dr_strcut(dr_clearhtml($t['content']), 10, '...')}
去掉html標(biāo)簽只保留中文:{dr_html2text($t['content'], 1)}
去掉html標(biāo)簽只保留中文再截10個(gè)字:{dr_strcut(dr_html2text($t['content'], 1), 10, '...')}
(針對(duì)上面無(wú)效時(shí)的用法)普通輸出:{dr_code2html($t['content'])}
(針對(duì)上面無(wú)效時(shí)的用法)去掉html標(biāo)簽:{dr_clearhtml(dr_code2html($t['content']))}
(針對(duì)上面無(wú)效時(shí)的用法)去掉html標(biāo)簽再截10個(gè)字:{dr_strcut(dr_clearhtml(dr_code2html($t['content'])), 10, '...')}
{module catid=$catid join=1_news_data_0 on=id order=updatetime page=1}
{$t.content}
{/module}