| 插件名稱 | 建站系統(tǒng)大眾版 V4.1 |
| 插件作者 | 迅睿官方團隊 |
| 最近更新 | 2026-03-31 10:25:30 |
| 增加文章AI審核和AI創(chuàng)作入口(需升級AI助手插件) |
<div class="news-detail">
{category module=share pid=$catid}
<h1 class="detail-title">{$cat.name}</h1>
<div class="detail-info-bar">
<div class="detail-info-time">更新時間:{dr_date($_updatetime, 'Y-m-d')}</div>
<div class="detail-info-numbers">查看:{dr_show_hits($id)}</div>
</div>
<div class="detail-con" id="maximg">
<p style="margin-top: 0px; margin-bottom: 0px; padding: 0px; list-style: none; transition: all 0s ease 0s; text-size-adjust: none; ;"><span style="margin: 0px; padding: 0px; list-style: none; transition: all 0s ease 0s; text-size-adjust: none; text-wrap: nowrap;">
{$cat.content}</span></p>
{/category}
</div>
以上代碼欄目內(nèi)容和時間都不能調(diào)用,欄目內(nèi)容修改成{$c.content},{$t.content}等嘗試過。這里的欄目是單頁,不是列表
官方提醒:使用category欄目循環(huán)標簽的生成工具,填寫參數(shù)就可以生成相關(guān)的代碼,每個參數(shù)后面都有用法解釋
cms建站大眾版插件中{$cat.content}表示當前頁面所屬欄目的內(nèi)容,而不是循環(huán)體中的變量,還有
1、category 沒有時間字段和閱讀量字段
2、more=1加上才會顯示更多的欄目字段
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
{$cat.content}怎么可能報數(shù)據(jù)庫錯誤,他就是一個變量而已,永遠不會包數(shù)據(jù)庫錯誤,
模板里面直接放他一句話,
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
謝謝 報錯是因為添加了時間變量,我刪除了可以了,注釋還不得行