相關文章(需購買插件)
{eyou:likearticle row='4' orderby='aid' channelid='4'}
<a href='{$field.arcurl}'>{$field.title}</a>
{/eyou:likearticle}
需購買相關插件
channelid='' 默認全部模型的相關文檔,可以手工指定多個模型ID,用,分開,比如:channelid='1,2,3'
mytypeid='' 手工指定要限定的欄目id,如果只指定一個欄目ID表示包括所有子級欄目,如果指定多個欄目ID用,分開,表示不包含子級欄目
limit='0,12' 調用行數,默認12條,(如:limit='2,12' 表示排除前面2條,列出后面12條)
titlelen='100' 標題長度
infolen='160' 表示內容簡介長度
row='100' 條數
上一篇/下一篇
{eyou:prenext get='pre'}
<a href="{$field.arcurl}" title="{$field.title}">上一篇 : {$field.title}</a>
{eyou:else /}
上一篇:沒有了
{/eyou:prenext}
{eyou:prenext get='next'}
<a href="{$field.arcurl}" title="{$field.title}">{$field.title}</a>
{eyou:else /}
下一篇:沒有了
{/eyou:prenext}
本欄目名稱及鏈接
<a href="{$eyou.field.typeurl}">{$eyou.field.typename}</a>
englist_name
欄目英文名稱
{eyou:channel type='top'}
{$field.englist_name}
{eyou:channel}
{eyou:channelartlist typeid='1,0'}
{eyou:field name='englist_name'/}
{/eyou:channelartlist}
同級全部欄目及鏈接
{eyou:channel type="self" currentstyle="active"}
<a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}</a>
{/eyou:channel}
type="self" self表示同級
{$eyou.field.ptypename}
上級欄目名稱及鏈接
<a href="{$eyou.field.ptypeurl}">{$eyou.field.ptypename}</a>
上級欄目ID:{$eyou.field.ptypeid}
上級欄目鏈接:{$eyou.field.ptypeurl}
上級欄目名稱:{$eyou.field.ptypename}
{$eyou.field.typeurl}
當前欄目鏈接
{$eyou.field.typeurl}
{$eyou.field.typename}
當前欄目名稱
{$eyou.field.typename}
可結合{$eyou.field.typeurl}鏈接
{$field.title}
文檔標題
{$field.title}
文章ID
{$field.aid}
{$eyou.field.id}
列表或{$field.aid},文章頁用{$eyou.field.id}
{$field.arcurl}
文檔鏈接
<a href='{$field.arcurl}'>{$field.title}</a>
{$eyou.field.typeid|gettoptype}
頂級欄目名稱及鏈接
<a href="{$eyou.field.typeid|gettoptype=###,'typeurl'}">
{$eyou.field.typeid|gettoptype=###,'typename'}
</a>
頂級欄目圖片: “{$eyou.field.typeid|gettoptype=###,'litpic'}“
頂級欄目分類(全部)高亮
<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.epexinri.com/coding/
{$field.aid}
文檔ID
{$field.aid}
list或或arclist可用{$field.aid},文章頁用{$eyou.field.id}
時間拆分
{$field.add_time|MyDate='d',###}天
{$field.add_time|MyDate='Y-m',###}年-月
用這個可以做成日歷類似效果
{$field.litpic}
文檔縮略圖
<img src='{$field.litpic}'>
三級欄目名稱及鏈接
<!-- 一級欄目名稱 -->
<h1>{eyou:channelartlist typeid='$eyou.field.typeid|gettoptype=###,typeid'}{eyou:field name='typename' /}{/eyou:channelartlist}</h1>
<!--二級欄目開始-->
{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對應樣式中的display:block-->
{/eyou:eq}
{/eyou:type}
{/eyou:eq}
<h2 class="{$field.currentstyle}">{$field.typename}</h2><!-- 二級欄目名稱 -->
<!--三級欄目開始-->
{eyou:notempty name="$field.children"}
{eyou:channel name="$field.children" id="field2"}
<h3><a href="{$field2.typeurl}" class="{$field2.currentstyle}">{$field2.typename}{$field2.typeid}<!-- 三級欄目名稱 --></a></h3>
{/eyou:channel}
{/eyou:notempty}
{/eyou:channel}
可以參考http://www.epexinri.com/coding/559.html做手風琴折疊菜單
截取正文字數
{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)