eyoucms易优CMS常用的10个标签整理(织梦转eyoucms迁移可用)
最近,很多朋友都在忙着将织梦CMS迁移到其他免费或者便宜的CMS程序中。其中我们有些朋友会迁移到标签相似的易优cms,虽然有一点想似,但是标签还是有区别的。我们在迁移程序后需要将原有的模板主题换成新程序的标签,当然对应的模板名称也是需要更换的。
在这篇文章中,整理10个常用的eyoucms标签,确保我们可以迁移到新的程序中。
基础语法:
{eyou:tagsort='now'getall='0'row='100'}<ahref='{$field.link}'{$field.tag}</a(文档数:{$field.total}){/eyou:tag}
这个和我们看到的DEDECMS是相似的。
基础参数:
aid=''文档ID,在内容页可以不设置该属性typeid=''栏目ID,调取某个栏目下的全部TAGrow='100'返回广告列表总数getall=''获取类型,0为当前内容页TAG标记,1为获取全部TAG标记type=''选择栏目方式type='son'表示下级栏目type='self'表示同级栏目type='top'表示顶级栏目type='sonself'表示当前下级栏目以及同级栏目type='first'表示当前栏目ID的最顶级栏目下的第一级全部栏目sort=''标签排序方式sort='new'按最新排序sort='rand'随机排序sort='week'按周统计排序sort='month'按月统计排序sort='hot'按点击数排序sort='total'按文档数排序name=''变量empty=''没有数据时显示的文案mod=''每隔N行输出的内容id=''可以任意指定循环里的变量名替代field,假设id='field1'模板调用如:{$field.title}变成{$field1.title}底层字段:
我们看看对应的参数。这里我们有10个常用的标签调用记录。
{eyou:channelartlisttypeid='82'}<ahref="{eyou:fieldname='typeurl'/}"{eyou:fieldname='typename'/}{eyou:channelrow="6"type='son'}<ahref="{$field.typeurl}"title="{$field.typename}"{$field.typename}</a{/eyou:channel}{/eyou:channelartlist}
{eyou:channeltype="first"id="field2"currentstyle="active"}<liclass='{$field2.currentstyle}'{$field2.typename}</li{/eyou:channel}
{eyou:arclisttypeid='71'limit='0,6'titlelen='30'infolen='160'orderby='add_time'}<li<divclass="img-center"<imgsrc="{$field.litpic}"alt="{$field.title}"</div<p{$field.title}</p</li{/eyou:arclist}
{eyou:includefile="header.htm"/}{eyou:includefile="footer.htm"/}
{eyou:position/}
6、封面页当前栏目的名称
{$eyou.field.typename}
7、分页数据调用以及分页样式
{eyou:listpagesize="1"titlelen="30"}<li<span{$field.add_time|MyDate='Y-m-d',###}</span<b{$field.title}</b</li{/eyou:list}
8、css、js、image引入标签
{eyou:staticfile="skin/css/style.css"/}{eyou:staticfile="skin/js/jquery.min.js"/}{eyou:globalname='web_templets_pc'/}模板路径
9、首页顶级栏目调用
<liclass='active'网站首页</li{eyou:channeltype="top"id="field"currentstyle="active"}<liclass="{eyou:notemptyname="$field.children"}dropdown{/eyou:notempty}"<iclass="arr"</i{$field.typename}<divclass="dropdown-box"{eyou:channelname="$field.children"id="field2"}<p{$field2.typename}</p{/eyou:channel}</div</li{/eyou:channel}
10、产品内容页面图片集调用
{eyou:volistname="$eyou.field.image_list"}<divclass="swiper-slide"<divclass="img-center"<imgsrc="{$field.image_url}"rel="{$field.image_url}"class="jqzoom"/</div</div{/eyou:volist}