發表日期:2018-06 文章編輯:小燈 瀏覽次數:3188
截取 [@text_cut]
[@text_cut s=topic.title?html len=16 append="..."/]
標簽介紹
參數詳解:
s:截取字符串長度
len:保留字符的長度
append:保留字段以后的追加字符以… 顯示
作用:截取過長的字符串,如標題標題太長了可以…表示
具體例子:
[@topic_page topLevel='0' count='5' tpl='0' status='-1' orderBy='8']
[#list tag_pagination.list as topic]
[@text_cut s=topic.title?html len=16 append="..."/] <br/>
[/#list]
[/@topic_page]
主題列表不帶分頁[@topic_list]
[@topic_list forumId='5' primeLevel='0' topLevel='0' createrId='5' keyWords='' status='-1' checkStatus='1' topicTypeId='1' excludeId=topic.id count='5' orderBy='5']
[#list tag_list as topic]
<a href="${topic.url!}" target="_blank">${topic.title?html!}</a>
[/#list]
[/@topic_list]
標簽參數說明
forumId:查詢板塊ID 非必選
primeLevel :精華級別 非必選
topLevel:置頂級別 非必選
createrId:創建用戶ID 非必選
keyWords 標題關鍵詞
status:狀態 0正常 -1屏蔽 1鎖定 非必選 默認-1 也就是查詢所有狀態
checkStatus 審核狀態 0待審核 1審核通過的
topicTypeId 話題ID 非必選
excludeId 排除ID 非必選 組合topicTypeId可以查詢相關主題
orderBy 排序 非必選 默認1
1 置頂級別 排序時間降序
2日瀏覽量 排序時間降序
3周瀏覽量 排序時間降序
4月瀏覽量 排序時間降序
5總瀏覽量 排序時間降序
6回復量 排序時間降序
7日回復量 排序時間降序
8 ID降序
0 最后回復時間 排序時間降序
count 分頁數
對象屬性
詳細參考3.2主題對象屬性
主題列表帶分頁[@topic_page]
[@"topic_page" forumId='5' primeLevel='0' topLevel='0' createrId='5' keyWords='' status='-1' checkStatus='1' topicTypeId='1' excludeId=topic.id count='5' orderBy='5']
[#list tag_list as topic]
<a href="${topic.url!}" target="_blank">${topic.title?html!}</a>
[/#list]
[#include "../tag/topic.html"/]
[/@"topic_page"]
標簽參數說明
詳細參考2.17主題列表不帶分頁[@topic_list]的參數說明
對象屬性
詳細參考3.2主題對象屬性
包含頁面 [@cms_include]
頁面模板包含標簽:
作用:把做好的頁面引入到另外一個頁面上去,一般是整個網站的一些公共部分,每個網頁都需要的,比如頁頭,頁腳。
具體例子:
示例:
[#include "../include/頁頭頂欄.html"/]
[#include "../include/頁頭導航欄.html"/]
日期:2018-06 瀏覽次數:3610
日期:2018-06 瀏覽次數:3187
日期:2018-06 瀏覽次數:3306
日期:2018-06 瀏覽次數:3087
日期:2018-06 瀏覽次數:3456
日期:2018-06 瀏覽次數:3268
日期:2018-06 瀏覽次數:3082
日期:2018-06 瀏覽次數:3393
日期:2018-06 瀏覽次數:3234
日期:2018-06 瀏覽次數:3859
日期:2018-06 瀏覽次數:2871
日期:2018-06 瀏覽次數:2895
日期:2018-06 瀏覽次數:3177
日期:2018-06 瀏覽次數:2915
日期:2018-06 瀏覽次數:2644
日期:2018-06 瀏覽次數:2814
日期:2018-06 瀏覽次數:3094
日期:2018-06 瀏覽次數:2823
日期:2018-06 瀏覽次數:2693
日期:2018-06 瀏覽次數:2764
日期:2018-06 瀏覽次數:2691
日期:2018-06 瀏覽次數:2647
日期:2018-06 瀏覽次數:2759
日期:2018-06 瀏覽次數:2900
日期:2018-06 瀏覽次數:3031
日期:2018-06 瀏覽次數:2760
日期:2018-06 瀏覽次數:2880
日期:2018-06 瀏覽次數:2988
日期:2018-06 瀏覽次數:2831
日期:2018-06 瀏覽次數:2784
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.