{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}
二級分類下,輸出二級分類名稱、鏈接,圖片及二級下的文章標題、鏈接、圖片及文章下的圖集、描述。