织梦怎么设置显示本栏目文章列表代码怎么加入
答案:2 悬赏:30
解决时间 2021-03-07 22:22
- 提问者网友:优雅ぉ小姐
- 2021-03-07 16:00
织梦怎么设置显示本栏目文章列表代码怎么加入
最佳答案
- 二级知识专家网友:狠傷凤凰
- 2021-03-07 16:22
用list标记就对了。
【List 标记】
功能说明:表示列表模板里的分页内容列表
适用范围:仅列表模板 list_*.htm
(1)基本语法
{dede:list col='' titlelen=''
infolen='' imgwidth='' imgheight='' orderby='' pagesize=''}{/dede:list}
(2)属性
[1]col 内容列数
[2]titlelen 标题长度
[3]infolen 内容摘要长度
[4]imgwidth 缩略图宽
[5]imgheight 缩略图高
[6]orderby 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默认为 sortrank
[7]pagesize 分页大小
(3)底层模板变量
ID(同 id),title,iscommend,color,typeid,ismake,description(同 info),postnum,lastpost,shorttitle
pubdate,senddate,arcrank,click,litpic(同 picname),typedir,typename,
arcurl(同 filename),typeurl,stime(pubdate 的"0000-00-00"格式),
textlink,typelink,imglink,image
注:list标记除了支持档案表的基本模板变量外,还支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。
【List 标记】
功能说明:表示列表模板里的分页内容列表
适用范围:仅列表模板 list_*.htm
(1)基本语法
{dede:list col='' titlelen=''
infolen='' imgwidth='' imgheight='' orderby='' pagesize=''}{/dede:list}
(2)属性
[1]col 内容列数
[2]titlelen 标题长度
[3]infolen 内容摘要长度
[4]imgwidth 缩略图宽
[5]imgheight 缩略图高
[6]orderby 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默认为 sortrank
[7]pagesize 分页大小
(3)底层模板变量
ID(同 id),title,iscommend,color,typeid,ismake,description(同 info),postnum,lastpost,shorttitle
pubdate,senddate,arcrank,click,litpic(同 picname),typedir,typename,
arcurl(同 filename),typeurl,stime(pubdate 的"0000-00-00"格式),
textlink,typelink,imglink,image
注:list标记除了支持档案表的基本模板变量外,还支持附加表的字段,你可以在模型管理中知道附加表支持列表使用的字段有哪些。
全部回答
- 1楼网友:陪衬角色
- 2021-03-07 17:40
这个不是默认就这样的?织梦调文章是按默认环境调的,比如说,你在文章内容模版,
article-article.htm下要写一个文章列表调用的标签{dede:arclist} [field:title/] {/dede:arclist/}。
那么这个 文章列表调出来的文章,就是你这篇文章所在的栏目下的文章。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯