Document

 咨询热线

18969909123

微信扫码咨询

收 起 

咨询热线

返回顶部

jeebbsV5.x系统标签大全

发布时间: 2017-11-10 18:11:34 作者:本站编辑 来源: 本站原创 浏览次数:49089

截取 [@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"/]

971