<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標簽里文檔內(nèi)容的前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}
二級分類下,輸出二級分類名稱、鏈接,圖片及二級下的文章標題、鏈接、圖片及文章下的圖集、描述。
{eyou:arclist typeid='264' titlelen='70' row='3' } {eyou:if condition="$i%2 =='0'"} <img src="{$field.litpic}"> {$field.title} {eyou:else /} {$field.title} <img src="{$field.litpic}"> {/eyou:if} {/eyou:arclist}
標簽實現(xiàn)如果是偶數(shù),圖片在上,字在下,否則,相反。
{eyou:arclist typeid='121' limit='0,10' mod='3'} <li {eyou:eq name='mod' value='0'}class="樣式名"{/eyou:eq}> <a href='{$field.arcurl}'>{$field.title}</a> </li> {/eyou:arclist}
上面是每個3行輸出一個class