From f47f1ca23e16327d347e40d9d788ae81578007b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Thu, 1 May 2025 12:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BC=98=E5=8C=96=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/taglib/help/arclist.txt | 2 +- src/system/taglib/help/arclistsg.txt | 2 +- src/system/taglib/help/channel.txt | 4 ++-- src/system/taglib/help/channelartlist.txt | 22 +++++++++++----------- src/system/taglib/help/likearticle.txt | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/system/taglib/help/arclist.txt b/src/system/taglib/help/arclist.txt index 66e6b837..048444e4 100755 --- a/src/system/taglib/help/arclist.txt +++ b/src/system/taglib/help/arclist.txt @@ -25,6 +25,6 @@ flag='h' 表示调用文章属性为h头条文档,包括:c推荐、p图片 noflag='' 同flag,表示不调用的文章属性 orderway='desc' 表示文章排序为desc降序,包括:asc升序 subday='7' 表示调用发布时间7天以内文档 -channelid='1' addfields='body' 表示调用自定义字段调用文档模型id为1且字段为body,channelid='1'不支持多个文档模型id,addfields='body'多个字段用英文逗号隔开,如:addfields='body,url'则标签为[field:body/]和[field:url/] +channelid='1' addfields='body' 表示调用自定义字段调用文档模型id为1且字段为body,前提是文档模型,字段需要添加到列表附加字段使用,channelid='1'不支持多个文档模型id,addfields='body'多个字段用英文逗号隔开,如:addfields='body,url'则标签为[field:body/]和[field:url/] 标签进阶 [field:body function="cn_substr('@me',180)"/] 表示调用body字段180个字符值,但不过滤html代码,需过滤代码方法为:function='cn_substr(Html2text("@me")."...",180)'则[field:body function='cn_substr(Html2text("@me")."...",180)'/] \ No newline at end of file diff --git a/src/system/taglib/help/arclistsg.txt b/src/system/taglib/help/arclistsg.txt index 3243d991..a72ba9af 100755 --- a/src/system/taglib/help/arclistsg.txt +++ b/src/system/taglib/help/arclistsg.txt @@ -15,6 +15,6 @@ limit='0,1' 表示调用从第1篇开始调用2条,如:2,3则从第2篇开 flag='h' 表示调用文章属性为h头条文档,包括:c推荐、p图片、f幻灯、s滚动、j跳转、b加粗 noflag='' 同flag,表示不调用的文章属性 subday='7' 表示调用发布时间7天以内文档 -channelid='1' addfields='body' 表示调用自定义字段调用文档模型id为1且字段为body,channelid='1'不支持多个文档模型id,addfields='body'多个字段用英文逗号隔开,如:addfields='body,url'则标签为[field:body/]和[field:url/] +channelid='1' addfields='body' 表示调用自定义字段调用文档模型id为1且字段为body,前提是文档模型,字段需要添加到列表附加字段使用,channelid='1'不支持多个文档模型id,addfields='body'多个字段用英文逗号隔开,如:addfields='body,url'则标签为[field:body/]和[field:url/] 标签进阶 [field:body function="cn_substr('@me',180)"/] 表示调用body字段180个字符值,但不过滤html代码,需过滤代码方法为:function='cn_substr(Html2text("@me")."...",180)'则[field:body function='cn_substr(Html2text("@me")."...",180)'/] \ No newline at end of file diff --git a/src/system/taglib/help/channel.txt b/src/system/taglib/help/channel.txt index 4d0dc3f6..4d318591 100755 --- a/src/system/taglib/help/channel.txt +++ b/src/system/taglib/help/channel.txt @@ -1,13 +1,13 @@ 栏目列表标签 >>dede>> {dede:channel type='top' typeid='' row='8' currentstyle='
  • ~typename~
  • '} -
  • [field:typename/]
  • +
  • [field:typename/]
  • {/dede:channel} >>dede>> typeid='1' 表示调用栏目id为1,多个栏目用英文逗号隔开,如:typeid='1,2,3' reid='0' 表示调用上级栏目id row='10' 表示调用10个栏目 -col='1' 表示调用分1列显示(默认为单列) +col='1' 表示调用分1列显示(默认为单列) type='son' 表示调用下级栏目son,包括:self同级栏目;top顶级栏目 currentstyle='' 表示调用当前栏目高亮应用样式,以上示例标签为:超链接a应用样式为class='thisclass',前提currentstyle要和循环的栏目html代码吻合,则可能html标签错误 标签进阶 diff --git a/src/system/taglib/help/channelartlist.txt b/src/system/taglib/help/channelartlist.txt index e6ff7c4f..e987bdcf 100755 --- a/src/system/taglib/help/channelartlist.txt +++ b/src/system/taglib/help/channelartlist.txt @@ -3,23 +3,23 @@ 栏目调用示例 {dede:channelartlist typeid='' notypeid='' row='10'} {/dede:channelartlist} ------------------------------------------------------------ 文章调用示例 {dede:channelartlist typeid='' notypeid='' row='10'}
    - +
    {/dede:channelartlist} >>dede>> diff --git a/src/system/taglib/help/likearticle.txt b/src/system/taglib/help/likearticle.txt index 5d77b6cf..1aa45475 100755 --- a/src/system/taglib/help/likearticle.txt +++ b/src/system/taglib/help/likearticle.txt @@ -8,5 +8,5 @@ row='10' 表示调用10条文档数量 col='2' 表示调用分2列(默认为单列) titlelen='160' 表示调用标题160长度 infolen='260' 表示调用文档简介260长度 -mytypeid='0' 表示调用指定栏目id,多个栏目用英文逗号隔开,如:typeid='1,2,3' +mytypeid='0' 表示调用指定栏目id,多个栏目用英文逗号隔开,如:typeid='1,2,3' innertext='' 单行记录样式(指标签中间的文档) \ No newline at end of file