- <!--page:{$size=8}-->
- <a href="[page:aurl]" title="[page:title]">[page:title]</a> 内容标题及链接 当前页面打开
- <a href="[page:aurl]" target="_blank" title="[page:title]">[page:title]</a> 内容标题及链接 新页面打开
- <a href="[page:aurl]"><img border="0" alt="[page:title]" src="[page:indexpic $width=100 $height=80]" width="100" $height="80"></a> 内容标题形象图及链接
- <!--page-->
复制代码
描述 [page:description $len=50 $Lenext=...] [page:description $len=100 $Lenext=...] [page:description $len=150 $Lenext=...] [page:description $len=255 $Lenext=...]
[page:createtime $format=yy-mm-dd hh:nn:ss] 生成时间
[page:modifytime $format=yy-mm-dd hh:nn:ss] 修改时间
[page:author] 作者
[page:views] 浏览量文字列表例子: - <!--page:{$size=8 $order=[order] desc,[id] desc}-->
- <a href="[page:aurl]" title="[page:title]">[page:title]</a> <br>
- <!--page-->
复制代码
图片列表例子: nophoto.gif 自己另存 小类页标题分页代码 <title>{field:title} - 第{page}页</title> 这个标签可不容易找着 嘿嘿
[page:i] 表示输出的记录编号
[page:curl] 文章所属栏目链接地址
[page:cname] 文章所属栏目名称
[page:aurl] 文章链接地址
[page:titlex $len=22 $lenext=...] 文章标题带属性(颜色+样式) [page:字段] 输出对应字段的值
[page:indexpic] 图片地址 {if:len("[page:indexpic]")>0}[page:indexpic]{end if} [page:indexpic $width=164 $height=112] 设定生成此大小的缩略图并调用 [page:comments] 评论数量 {if:[page:i] mod 2=0}</tr><tr>{end if} 换行
列表中直接调用全部文章内容(特殊) - <!--channel:{ $row=1 $table=channel $where=id = [page:cid] $field=table,cid,id,childid,childids}-->
- <!--artlist:{ $row=999 $table=Content $where=[cid]=[page:cid] }-->
- <!--c:{$row=1 $table=[channel:table $Replace={pre}##] $where=[aid]=[page:aid] $order=[aid] desc}-->
- [c:content]
- <!--c-->
- <!--artlist-->
- <!--channel-->
复制代码
|