同級(jí)全部欄目及鏈接
{eyou:channel type="self" currentstyle="active"}
<a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a>
{/eyou:channel}
type="self" self表示同級(jí)
{$eyou.field.ptypename}
上級(jí)欄目名稱及鏈接
<a href="{$eyou.field.ptypeurl}">{$eyou.field.ptypename}</a>
上級(jí)欄目ID:{$eyou.field.ptypeid}
上級(jí)欄目鏈接:{$eyou.field.ptypeurl}
上級(jí)欄目名稱:{$eyou.field.ptypename}
{$eyou.field.typeid|gettoptype}
頂級(jí)欄目名稱及鏈接
<a href="{$eyou.field.typeid|gettoptype=###,'typeurl'}">
{$eyou.field.typeid|gettoptype=###,'typename'}
</a>
頂級(jí)欄目圖片: “{$eyou.field.typeid|gettoptype=###,'litpic'}“
頂級(jí)欄目分類(全部)高亮
<a href="{$eyou.field.typeid|gettoptype=###,'typeurl'}" title="{$eyou.field.typeid|gettoptype=###,'typename'}"
{eyou:eq name='$eyou.field.typeid' value='$eyou.field.typeid|gettoptype=###,typeid'}class="active"{/eyou:eq}>
全部
</a>

http://www.nfbmw.net/coding/
三級(jí)欄目名稱及鏈接
<!-- 一級(jí)欄目名稱 -->
<h1>{eyou:channelartlist typeid='$eyou.field.typeid|gettoptype=###,typeid'}{eyou:field name='typename' /}{/eyou:channelartlist}</h1>
<!--二級(jí)欄目開始-->
{eyou:channel type="first" currentstyle="active"}
{eyou:eq name='$eyou.field.grade' value='2'}
{eyou:type typeid='$eyou.field.typeid' id='field1'}
{eyou:eq name='$field1.parent_id' value='$field.id'}
{eyou:assign name='$field.currentstyle' value='current' /}
<!--current對(duì)應(yīng)樣式中的display:block-->
{/eyou:eq}
{/eyou:type}
{/eyou:eq}
<h2 class="{$field.currentstyle}">{$field.typename}</h2><!-- 二級(jí)欄目名稱 -->
<!--三級(jí)欄目開始-->
{eyou:notempty name="$field.children"}
{eyou:channel name="$field.children" id="field2"}
<h3><a href="{$field2.typeurl}" class="{$field2.currentstyle}">{$field2.typename}{$field2.typeid}<!-- 三級(jí)欄目名稱 --></a></h3>
{/eyou:channel}
{/eyou:notempty}
{/eyou:channel}
可以參考http://www.nfbmw.net/coding/559.html做手風(fēng)琴折疊菜單
當(dāng)前三級(jí)折疊菜單
<!-- 分類折疊手風(fēng)琴菜單 開始 -->
<div class="subnavbox bg-white radius">
<h2 class="bg-blue text-white">{eyou:channelartlist typeid='$eyou.field.typeid|gettoptype=###,typeid'}{eyou:field name='typename' /}{/eyou:channelartlist}</h2>
<!--當(dāng)前欄目下二級(jí)欄目調(diào)用-->
{eyou:channel type="first" currentstyle="active"}
{eyou:eq name='$eyou.field.grade' value='2'}
{eyou:type typeid='$eyou.field.typeid' id='field1'}
{eyou:eq name='$field1.parent_id' value='$field.id'}
{eyou:assign name='$field.currentstyle' value='current' /}
<!--current對(duì)應(yīng)樣式中的display:block-->
{/eyou:eq}
{/eyou:type}
{/eyou:eq}
<div class="{$field.currentstyle}dd {$field.currentstyle}dt suboneNav">{$field.typename}</div>
<!--當(dāng)前欄目下三級(jí)欄目調(diào)用-->
{eyou:notempty name="$field.children"}
<ul class="cur-bg {$field.currentstyle}">
{eyou:channel name="$field.children" id="field2"}
<li><a href="{$field2.typeurl}" class="{$field2.currentstyle}">{$field2.typename}{$field2.typeid}</a>
</li>
{/eyou:channel}
</ul>
{/eyou:notempty}
{/eyou:channel}
</div>
<!-- 分類折疊手風(fēng)琴菜單 結(jié)束 -->
CSS和JS代碼可以點(diǎn)此鏈接獲取:http://www.nfbmw.net/coding/559.html
sppurchase
列表頁(yè)調(diào)用購(gòu)物車
{eyou:sppurchase id='field' currentstyle='btn-danger'}
<a class="" href="JavaScript:void(0);" {$field.ShopAddCart}>加入購(gòu)物車(或者圖文字體)</a>
{$field.hidden}
{/eyou:sppurchase}
memberinfos
關(guān)聯(lián)會(huì)員頭像信息
{eyou:memberinfos mid='$field.users_id' id='users'}
<img src="{$users.head_pic}" class="radius-big ans-user-head float-left" alt="{$users.nickname}">
{$users.hidden}
{/eyou:memberinfos}
加入收藏功能
<!-- 收藏代碼開始 -->
<a href="javascript:void(0);" id="ey_1595557091" onclick="ey_1595557091(this);" data-html="已收藏">加入收藏</a>
{:hookexec('Collection/Collection/show')}
<!-- 收藏代碼結(jié)束 -->
需要購(gòu)買插件
{$field.downcount}
附件下載次數(shù)
{$field.downcount}
標(biāo)簽頁(yè)標(biāo)題 / 關(guān)鍵詞 / 描述
<!--標(biāo)簽頁(yè)seo標(biāo)題-->
<title>{$eyou.field.seo_title}_標(biāo)簽頁(yè)_{eyou:global name="web_name" /}</title>
<!--標(biāo)簽頁(yè)seo描述-->
<meta name="description" content="{$eyou.field.seo_description}" />
<!--標(biāo)簽頁(yè)seo關(guān)鍵詞-->
<meta name="keywords" content="{$eyou.field.seo_keywords}" />
給推薦一個(gè)標(biāo)識(shí)
{eyou:list}
{eyou:eq name='$field.is_recom' value='1'}
<span>{$field.is_recom}</span>
{/eyou:eq}
{/eyou:list}
推薦:is_recom
特薦:is_special
頭條:is_head
有關(guān)當(dāng)前焦點(diǎn)的標(biāo)簽,只有我能理解
{eyou:channel type="first" currentstyle="active"}
{eyou:eq name='$eyou.field.grade' value='2'}
{eyou:type typeid='$eyou.field.typeid' id='field1'}
{eyou:eq name='$field1.parent_id' value='$field.id'}
{eyou:assign name='$field.currentstyle' value='active' /}
{/eyou:eq}
{/eyou:type}
{/eyou:eq}
<li>
<a href="{$field.typeurl}" class="{$field.currentstyle}">{$field.typename}</a>
</li>
{/eyou:channel}
----------------------------------------------------------
{eyou:channel type='sonself' currentstyle="active"}
<li>
<a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a>
</li>
{/eyou:channel}
當(dāng)前欄目文章數(shù)
{$eyou.field.typeid|GetTotalArc=###}
統(tǒng)計(jì)欄目文章數(shù) — GetTotalArc(當(dāng)前欄目ID)
當(dāng)前欄目判斷有無(wú)子欄目
{eyou:gt name="$eyou.field.has_children" value="0"}有則顯示{/eyou:gt}
gt 大于 greater than
列表第一篇文檔與其他文檔不同樣式
{eyou:list pagesize='20' titlelen='40'}
{eyou:eq name='$i' value='1'}<!--判斷開始-->
<li>img src="{$field.litpic}"><a href="{$field.arcurl}" title="{$field.title}">{$field.title}</a</li><!--第一條-->
{else /}<!--判斷第一條結(jié)束-->
<li><a href="{$field.arcurl}" title="{$field.title}">{$field.title}</a></li><!--余下條數(shù)-->
{/eyou:eq}<!--判斷結(jié)束-->
{/eyou:list}
當(dāng)前欄目調(diào)用同級(jí)欄目
{eyou:channel type="self" currentstyle="active"}
<a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a>
{/eyou:channel}
當(dāng)前欄目調(diào)用子欄目
{eyou:channel type="son" currentstyle="active"}
<a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a>
{/eyou:channel}
{$eyou.field.content}
當(dāng)前單頁(yè)正文
{$eyou.field.content}