<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}
二级分类下,输出二级分类名称、链接,图片及二级下的文章标题、链接、图片及文章下的图集、描述。
{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}
标签实现如果是偶数,图片在上,字在下,否则,相反。
{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