{eyou:pagelist listitem='index,pre,pageno,next,end,info' listsize=‘2’ /}
listsize=2 表示 [1][2][3][4][5] 这些项的长度 - 1,再除以2得出的结果值
listitem='index,pre,pageno,next,end' 表示页码样式,可以把下面的值叠加
index 首页
pre 上一页
pageno 页码
next 下一页
end 末页
info 共N页 N条
{eyou:channel id="field" currentstyle="active"} <li class="{$field.currentstyle}"> <a href="{$field.typeurl}">{$field.typename}</a></li> {/eyou:channel
{eyou:channel type="first" id="field" currentstyle="hover"} <ul class="一级"> <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> <!--一级名称 --> {eyou:notempty name="$field.children"} <ul class="二级"> {eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a><li> {/eyou:channel} </ul> {/eyou:notempty} </li> </ul> {/eyou:channel}
{eyou:channel type="first" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> {eyou:notempty name="$field.children"} <ul class="二级"> {eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:notempty name="$field2.children"} <ul class=" 三级"> {eyou:channel name="$field2.children" row="100" id="field3"} <li><a href="{$field2.typeurl}">{$field3.typename}</a> </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel} </ul> {/eyou:notempty} </li> {/eyou:channel}
{eyou:list titlelen='30' infolen='10' pagesize='20'} <a href='{$field.arcurl}'>{$field.title}</a> <span>{$field.seo_description}</span> {/eyou:list}
titlelen='30' 标题字数
pagesize='20' 多少条为一页
infolen='10' 描述{$field.seo_description}的字数
{eyou:channel type="first"} <h2>{$field.typename}</h2> <!-- 这是二级分类名称 --> {eyou:notempty name="$field.children"} {eyou:channel name="$field.children" id="field2"} <h3>{$field2.typename}{$field2.typeid}</h3> <!-- 这是三级分类名称 --> {eyou:arclist typeid='$field2.typeid' titlelen='10' id="field3" addfields='content'} <!-- 以下是三级分类下的文章 --> <a href="{$field3.arcurl}"> <img src="{$field3.litpic}" alt="{$field3.title}">{$field3.title}</a > {/eyou:arclist} {/eyou:channel} {/eyou:notempty} {/eyou:channel}
{eyou:channel type="first"} {$field.typename}<!-- 二级分类名称 --> {eyou:arclist typeid='$field.typeid' titlelen='68' row='9'} <a href="{$field.arcurl}">{$field.title}</a> {/eyou:arclist} {/eyou:channel}
<title>{$eyou.field.seo_title}</title> <meta name="keywords" content="{$eyou.field.seo_keywords}" /> <meta name="description" content="{$eyou.field.seo_description}" />
<title>{eyou:global name='web_title' /}_{eyou:global name='web_name' /}</title> <meta name="description" content="{eyou:global name='web_description' /}" /> <meta name="keywords" content="{eyou:global name='web_keywords' /}" />
{eyou:include file="header.htm" /}
{eyou:include file="footer.htm" /}
{eyou:arclist typeid='8' flag='c' infolen='20' titlelen='30' row='10'} <a href='{$field.arcurl}'>{$field.title}</a> {/eyou:arclist}
{$field.add_time|MyDate='Y-m-d',###}
{$field.add_time|MyDate='m-d',###}
{$field.add_time|MyDate='Y年m月d日',###}
{$eyou.field.update_time|MyDate='Y-m-d H:i:s',###}
{$field.update_time|MyDate='Y-m-d',###}
{$field.click}
{$field.title}
<a href='{$field.arcurl}'>{$field.title}</a>
{$field.aid}
list或或arclist可用{$field.aid},文章页用{$eyou.field.id}
<img src='{$field.litpic}'>
{eyou:arclist typeid='2' limit='0,3'} {$field.content|html_msubstr=###,0,11,true} {/eyou:arclist}
截取arclist标签里文档内容的前11个字符(纯文本截取,true自带省略号,否false)
{eyou:arclist typeid='2' limit='0,3'} {$field.title|msubstr=###,0,11,true} {/eyou:arclist}
截取arclist标签里文档标题的前11个字符(纯文本截取,true自带省略号,否false)
{$field.seo_description}
由{eyou:arclist infolen='10'}或{eyou:list infolen='10'}中的infolen=''控制
{eyou:arclist typeid='1' id='field'} {eyou:arcview id='field2'} {eyou:volist name="$field2.image_list" id='field3'} <img src="{$field3.image_url}" alt="{$field.intro}"> {/eyou:volist} {/eyou:arcview}
可以用于arclist和list标签
{$field.intro}为图集的描述
{eyou:type typeid='栏目id'} <a href="{$field.typeurl}">{$field.typename}</a> {/eyou:type}
{eyou:channelartlist typeid=''} {eyou:channel type="son"} {$field.typename}<!-- 二级栏目名称 --> {eyou:arclist typeid='$field.typeid'} <a href="{$field.arcurl}">{$field.title}</a> {/eyou:arclist} {/eyou:channel} {/eyou:channelartlist}
可以指定typeid=''的ID
{eyou:channel type="first"} <h2>{$field.typename}</h2> {eyou:notempty name="$field.children"} <ul> {eyou:channel name="$field.children" id="field2"} <li> <a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:arclist typeid='$field2.typeid' titlelen='20' id="field3"} <a href="{$field3.arcurl}">{$field3.title}</a> {/eyou:arclist} </li> {/eyou:channel} </ul> {/eyou:notempty} {/eyou:channel}
分别列出第二级的栏目名称、链接、图片,第三级的栏目名称、链接、图片及第三级各栏目下的文章
{eyou:channelartlist typeid='4'} {eyou:channel type='son'} <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}<img src="{$field.litpic}" alt="{$field.typename}"></a> {eyou:arclist typeid='$field.typeid' titlelen='20' id="field2"} {eyou:arcview id='field2'} {eyou:volist name="$field2.image_list" id='field3' row='1'} <a href="{$field2.arcurl}" target="_blank"><img src="{$field3.image_url}" alt="{$field2.title}">{$field2.title}</a> {/eyou:volist} {/eyou:arcview} {/eyou:arclist} {/eyou:channel} {/eyou:channelartlist}
二级分类下,输出二级分类名称、链接,图片及二级下的文章标题、链接、图片及文章下的图集、描述。