上级栏目ID: {$eyou.field.ptypeid}

上级栏目链接: {$eyou.field.ptypeurl}

上级栏目名称: {$eyou.field.ptypename}

如何调用指定栏目名称

{eyou:type typeid=1}<a href={$field.typeurl}>{$field.typename}</a>{/eyou:type }

{$field.typename}栏目名称

此方法在后台设置栏目隐藏时仍可调用,并在前端显示

易优cms获取顶级栏目名称代码是

“{$eyou.field.typeid|gettoptype=###,typename}”

易优cms获取顶级栏目链接代码是

“{$eyou.field.typeid|gettoptype=###,typeurl}”

易优cms获取顶级栏目英文名称代码是

“{$eyou.field.typeid|gettoptype=###,englist_name}

在图集模型的内容页里调用如下:

{eyou:volist name=”$eyou.field.image_list” id=”field”}

<img src=”{$field.image_url}” alt=”{$field.title}” />

图片集描述:{$field.intro}

{/eyou:volist}

EYOU 首页如何调取图集模型图片

{eyou:arclist typeid=1 titlelen=40 row=6 id=field}

<section class=”section”>

<div class=”img”>

{eyou:arcview id=field2}

{eyou:volist name=”$field2.image_list” id=field3}

<img src=”{$field3.image_url}” alt=””>

{/eyou:volist}

{/eyou:arcview}

<h2><a href=”{$field.arcurl}” title=”{$field.title}” target=”_blank”>{$field.title}</a></h2>

ld.author}</span> <span>日期:{$field.add_time|MyDate=Y-m-d,###}</span> <span>人气:{$field.click}</span> <span class=”readmore”><a href=”{$field.arcurl}” title=”{$field.title}” target=”_blank”>阅读全文</a></span> </div>

<div class=”clear”></div>

</section>

{/eyou:arclist}

文章内容页如何获取上一篇下一篇

直接调用上一篇和下一篇的代码如下

上一篇调用代码

{eyou:prenext get=pre}

上一篇 : {$field.title}

{eyou:else /}

上一篇:没有了

{/eyou:prenext}

下一篇调用代码

{eyou:prenext get=next}

下一篇 : {$field.title}

{eyou:else /}

下一篇:没有了

{/eyou:prenext}

指定文章列表如何调用图集内容

{eyou:arclist typeid=1 row=8 titlelen=30 id=”field2″}

{eyou:arcview id=field2}

{eyou:volist name=”$field2.image_list” id=field3}

<img src=”{$field3.image_url}” alt=””>

{/eyou:volist}

{/eyou:arcview}

{/eyou:arclist}

首页、列表页调用文章content内容的方法

1.不过滤内容样式

{eyou:arclist titlelen=40 row=4 typeid=5 addfields=content }

<li> <a href=”{$field1.arcurl}” title=”{$field1.title}” class=”con1_imgs_border”><img src=”{$field1.litpic}” class=”PicAuto” alt=”{$field1.title}” /></a>

<p>{$field.content}</p>

</li>

{/eyou:arclist}

2.过滤内容样式

{eyou:arclist titlelen=40 row=4 typeid=5 addfields=content }

<li> <a href=”{$field1.arcurl}” title=”{$field1.title}” class=”con1_imgs_border”><img src=”{$field1.litpic}” class=”PicAuto” alt=”{$field1.title}” /></a>

<p>{$field.content|html_msubstr=###}</p>

</li>

{/eyou:arclist}

EYOU 列表页如何调取图集模型图片

{eyou:list titlelen=40 infolen=20 pagesize=12 id=field}

{eyou:arcview id=field2}

{eyou:volist name=”$field2.image_list” id=field3}

<img src=”{$field3.image_url}” alt=””>

{/eyou:volist}

{/eyou:arcview}

{/eyou:list}

EYOU 文章列表如何调用文章主体

{eyou:arclist titlelen=20 infolen=50 row=4 addfields=content}

<li >

<div class=”news-h”><a href=”{$field.arcurl}” target=”_blank” title=”{$field.title}”>{$field.title}</a></div>

<div class=”news-sum”>{$field.content}…</div>

</li>

{/eyou:arclist}

EYOUCMS如何用channelartlist调用指定的栏目及其列表

{eyou:channelartlist typeid=6}

<div id=”fh5co-product-list” class=”layout”>

<div class=”bg-product met-index-distance”>

<div class=”container”>

<div class=”line”>

<div class=”x12 text-center fh5co-heading margin-large-bottom”>

<h2 class=”not-animated” data-animate=”fadeInDown” data-delay=”200″>{eyou:field name=typename /}</h2>

<span>{eyou:field name=seo_description /}</span> </div>

</div>

<div class=”line show-content”>

<div class=”tab” data-toggle=”click”>

<div class=”tab-head text-center”>

<ul class=”tab-nav”>

{eyou:channel row=4 type =son mod=4}

<li {eyou:eq name=$mod value=1}class=”active”{/eyou:eq}><a href=”#tab-product{$i}”>{$field.typename}</a></li>

{/eyou:channel}

</ul>

</div>

<div class=”tab-body”>

{eyou:channel row=4 type=son mod=4 key=ki}

<div class=”tab-panel {eyou:eq name=$mod value=1}active{/eyou:eq}” id=”tab-product{$ki}”>

<div class=”layout”>

<div class=”line-middle”>

{eyou:arclist typeid=$field.typeid row=8 titlelen=30 }

<div class=”xm3 xb3 xs6 xl6″>

<div class=”not-animated” data-animate=”slideInUp” data-delay=”100″>

<div class=”pro-item”>

<div class=”portfolio-img”><a href=”{$field.arcurl}” title=”{$field.title}”><img src=”{$field.litpic}” alt=”{$field.title}”/></a></div>

<h2><a href=”{$field.arcurl}” title=”{$field.title}”>{$field.title}</a></h2>

</div>

</div>

</div>

{/eyou:arclist} </div>

</div>

</div>

{/eyou:channel}

</div>

</div>

</div>

</div>

</div>

</div>

{/eyou:channelartlist}

{eyou:channelartlist typeid=6} 指定父栏目ID

{eyou:field name=typename /} 栏目名称

{eyou:field name=seo_description /} 栏目描述

{eyou:channel row=4 type =son mod=4}父栏目ID下的子栏目调用四条 mod=4循环判断4条

<li {eyou:eq name=$mod value=1}class=”active”{/eyou:eq}><a href=”#tab-product{$i}”></a></li> 第一条li加样式 {$i}自增变量(1开始)

{/eyou:channel}

{eyou:channel row=4 type=son mod=4 key=ki} 父栏目ID下的子栏目调用四条 mod=4循环判断4条 key=ki自定义自增变量(1开始)

<div class=”tab-panel {eyou:eq name=$mod value=1}active{/eyou:eq}” id=”tab-product{$ki}”>

{eyou:arclist typeid=$field.typeid row=8 titlelen=30 } 文章调用八条

<div class=”xm3 xb3 xs6 xl6″>

<div class=”not-animated” data-animate=”slideInUp” data-delay=”100″>

<div class=”pro-item”>

<div class=”portfolio-img”><a href=”{$field.arcurl}” title=”{$field.title}”><img src=”{$field.litpic}” alt=”{$field.title}”/></a></div>

<h2><a href=”{$field.arcurl}” title=”{$field.title}”>{$field.title}</a></h2>

</div>

</div>

</div>

{/eyou:arclist}

</div>

{/eyou:channel}

{/eyou:channelartlist}

发表评论

后才能评论