{$field.litpic}
{$field.arcurl}
{$field.title}
<div id='tagid名稱'> {eyou:arclist typeid='欄目ID' row='10' tagid='tagid名稱'} <a href='{$field.arcurl}'>{$field.title}</a> {/eyou:arclist} </div> {eyou:arcpagelist pagesize='3' tagid='tagid名稱' tips='沒(méi)有數(shù)據(jù)了'} <a href="javascript:void(0);" {$field.onclick}>點(diǎn)擊加載更多</a> {/eyou:arcpagelist}
需要在模板文件夾建一個(gè)system的文件夾,里面建一個(gè)arclist_tagid名稱.htm的文件,將標(biāo)簽上的<a href='{$field.arcurl}'>{$field.title}</a>復(fù)制進(jìn)去。row='10'為初始數(shù)據(jù)
pagesize='3' 點(diǎn)一次加載3條數(shù)據(jù)
這里有一個(gè)更詳細(xì)的教程:http://www.ohcbyi.cn/xingyedongtai/186.html
{eyou:pagelist listitem='index,pre,pageno,next,end,info' listsize=‘2’ /}
listsize=2 表示 [1][2][3][4][5] 這些項(xiàng)的長(zhǎng)度 - 1,再除以2得出的結(jié)果值
listitem='index,pre,pageno,next,end' 表示頁(yè)碼樣式,可以把下面的值疊加
index 首頁(yè)
pre 上一頁(yè)
pageno 頁(yè)碼
next 下一頁(yè)
end 末頁(yè)
info 共N頁(yè) 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="一級(jí)"> <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a> <!--一級(jí)名稱 --> {eyou:notempty name="$field.children"} <ul class="二級(jí)"> {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="二級(jí)"> {eyou:channel name="$field.children" row="100" id="field2"} <li><a href="{$field2.typeurl}">{$field2.typename}</a> {eyou:notempty name="$field2.children"} <ul class=" 三級(jí)"> {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' 標(biāo)題字?jǐn)?shù)
pagesize='20' 多少條為一頁(yè)
infolen='10' 描述{$field.seo_description}的字?jǐn)?shù)
{eyou:channel type="first"} <h2>{$field.typename}</h2> <!-- 這是二級(jí)分類名稱 --> {eyou:notempty name="$field.children"} {eyou:channel name="$field.children" id="field2"} <h3>{$field2.typename}{$field2.typeid}</h3> <!-- 這是三級(jí)分類名稱 --> {eyou:arclist typeid='$field2.typeid' titlelen='10' id="field3" addfields='content'} <!-- 以下是三級(jí)分類下的文章 --> <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}<!-- 二級(jí)分類名稱 --> {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}" />