dede分页标签应用list与arclist
来源:互联网 发布:食品研究与数据分析 编辑:程序博客网 时间:2024/05/20 06:29
- {dede:list pagesize='10'}
- [field:body/]
- [field:title/]
- {/dede:list}
5、将内容转化为文字格式并截取字符串[field:body function='cn_substr(html2text(@me),600)'/]
标签名称:list
功能说明:表示列表模板里的分页内容列表
适用范围:仅列表模板 list_*.htm
基本语法:
{dede:list col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' pagesize='' orderway=''}{/dede:list}
相关函数:
文件\include\arc.listview.class.php第504行
//获得一个单列的文档列表
function GetArcList($limitstart=0,$row=10,$col=1,$titlelen=30,$infolen=250,
$imgwidth=120,$imgheight=90,$listtype="all",$orderby="default",$innertext="",
$tablewidth="100",$ismake=1,$orderWay='desc')
参数说明:
col='' 内容列数
titlelen='' 标题长度
infolen='' 内容摘要长度
imgwidth='' 缩略图宽
imgheight='' 缩略图高
orderby='' 排序方式,有效的排序方式有 senddate、pubdate、id、click、lastpost、postnum ,默认为 sortrank
pagesize='20' 分页大小
arclist
- {dede:arclist row='10'addfields='body'channelid='1'}
- [field:body function='cn_substr(html2text(@me),600)'/]
- {/dede:arclist}
4、代码说明
(1)addrields='字段一,字段二…',自定义字段或系统字段
(2)function=’cn_substr(html2text(@me),600)’ 将文章内容转化为文字格式
(3)channelid,模型编号,文章默认为1,查看位置:后台–核心–内容模型管理
标签名称:arclist
基本语法:
{dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}
<a href='[field:arcurl/]'>[field:title/]</a>
{/dede:arclist}
参数说明:
col='' 分多少列显示(默认为单列),5.3版中本属性可以通过多种方式进行多行显示
如果col='1'要多列显示的可用div+css实现
以下为通过div+css实现多列的示例:
<style type=text/css>
div{width:400px;float:left;}
</style>
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist='' col='2'}
•[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/>
{/dede:arclist}
当col>1将使用原来的table多列方式显示
row='10' 返回文档列表总数
typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在首页模板中允许用","分开表示多个栏目;
getall='1' 在没有指定这属性的情况下,在栏目页、文章页模板,不会获取以","分开的多个栏目的下级子类
titlelen = '30' 标题长度 等同于titlelength
infolen='160' 表示内容简介长度 等同于infolength(只控制infos,并不控制description的内容)
imgwidth='120' 缩略图宽度
imgheight='90' 缩略图高度
listtype='all' 栏目类型 image含有缩略图 commend推荐
orderby='sortrank' 文档排序方式
§ orderby='hot' 或 orderby='click' 表示按点击数排列
§ orderby='sortrank' 或 orderby='pubdate' 按出版时间排列
§ orderby='near'
§ orderby=='lastpost' 按最后评论时间
§ orderby=='scores' 按得分排序
§ orderby='id' 按文章ID排序
§ orderby='rand' 随机获得指定条件的文档列表
keyword='' 含有指定关键字的文档列表,多个关键字用","分
innertext = '' 单条记录样式
aid='' 指定文档ID
idlist ='' 提取特定文档(文档ID)
channelid 频道ID
- dede分页标签应用list与arclist
- dede:arclist 实现分页!-
- dede arclist ajax分页
- dede:arclist 标签排序
- dede:arclist标签:arclist标签使用大全
- dedecms的dede:list和dede:arclist分页问题(包括列表序号)
- 在dede:arclist、dede:list等标签中调用附加字段
- DeDeCMS列表页用dede:arclist和dede:list标签调用附加表字段
- DEDE织梦标签dede:arclist 详解
- DEDE织梦标签dede:arclist 详解
- dede标签:arclist标签使用大全
- dede标签:arclist标签使用大全
- dede标签:arclist标签使用大全
- dede标签:arclist标签使用大全
- DEDE 【arclist】增加按权重排序 dedecms v5.6列表页标签{dede:list增加按权重排序标签
- dede arclist 标签 添加自定义排序类型
- dede 搜索页面调用 dede:arclist 标签方法
- 搜索页使用dede:arclist dede:chanellist 标签方法
- 解决Android NDK: WARNING: APP_PLATFORM android-14 is larger than
- R:递归
- Java面试全集
- 我的第一次程序编写
- CocoaPods详解之----使用篇
- dede分页标签应用list与arclist
- uLua运行LuaJIT编译后的bytecode文件
- R:置换函数
- Qt 内存图像数组封装成QImage
- c中多参函数的实现和使用
- 软件资产管理重在license
- 第9周项目3-输出星号图(f)
- 第二次作业
- 第9周项目3-输出星号图(f)