01 2021 档案
摘要:在没有封面图片的时候,会随机显示出几张色彩不同的风格图片。这样整个效果就好很多,也能减少工作量,毕竟我们没太多时间去找封面图处理。我就想着用Eyoucms能执行PHP的功能,用rand随机下这几张图片出来,我用mt_rand,我们先将图片放到images,然后分别命名为1.jpg,2.jpg,3.j
阅读全文
摘要:{eyou:global name='web_templets_m' /} 移动端路径 {eyou:global name='web_templets_pc' /} 电脑端路径 {neq name='$i' value='$__LIST__|count=###'}|{/neq} 最后一个不显示 {e
阅读全文
摘要:一、第一条的判断 判断代码{eyou:eq name='$i' value='1'} 输出值{/eyou:eq},arclist与list都可以 {eyou:list pagesize='20' titlelen='40'} {eyou:eq name='$i' value='1'}<!--判断开始
阅读全文
摘要:网站名称 {eyou:global name='web_name' /} 域名链接 {eyou:global name='web_basehost' /} 网站版权 {eyou:global name='web_copyright' /} 网站备案号 {eyou:global name='web_r
阅读全文
摘要:一级菜单导航 <li class="{eyou:eq name='$Request.param.m' value='Index'}hover{/eyou:eq}"> <a href="{eyou:global name='web_cmsurl' /}">首页</a> </li> {eyou:chan
阅读全文
摘要:从0开始的办法{$key}从1开始的办法{$i}如果想从2开始怎么办?只需+1就可实现{$i+1} {eyou:list pagesize ='10' titlelen="40" } <li class="yi{$i}"><a href="{$field.arcurl}"> {$field.titl
阅读全文
摘要:标题 / 关键词 / 描述 <title>{$eyou.field.seo_title}</title> <meta name="description" content="{$eyou.field.seo_description}" /> <meta name="keywords" content
阅读全文
摘要:{$eyou.field.typeid|GetTotalArc=###}
阅读全文
摘要:{eyou:type type='self'} {$field.id|gettoptype=###,typename} {/eyou:type}
阅读全文
摘要:当前栏目调用同级栏目 {eyou:channel type="self" currentstyle="active"} <a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field
阅读全文
摘要:{eyou:list pagesize='20' titlelen='40'} {eyou:eq name='$i' value='1'}<!--判断开始--> <li>img src="{$field.litpic}"><a href="{$field.arcurl}" title="{$fiel
阅读全文
摘要:{eyou:gt name="$eyou.field.has_children" value="0"}有则显示{/eyou:gt} gt 大于 greater than
阅读全文
摘要:{$eyou.field.typeid|GetTotalArc=###} 统计栏目文章数 — GetTotalArc(当前栏目ID)
阅读全文
摘要:{eyou:channel type="first" currentstyle="active"} {eyou:eq name='$eyou.field.grade' value='2'} {eyou:type typeid='$eyou.field.typeid' id='field1'} {ey
阅读全文
摘要:{eyou:list} {eyou:eq name='$field.is_recom' value='1'} <span>{$field.is_recom}</span> {/eyou:eq} {/eyou:list} 推荐:is_recom 特荐:is_special 头条:is_head
阅读全文
摘要:<!-- 收藏代码开始 --> <a href="javascript:void(0);" id="ey_1595557091" onclick="ey_1595557091(this);" data-html="已收藏">加入收藏</a> {:hookexec('Collection/Collec
阅读全文
摘要:{eyou:memberinfos mid='$field.users_id' id='users'} <img src="{$users.head_pic}" class="radius-big ans-user-head float-left" alt="{$users.nickname}">
阅读全文
摘要:<!-- 分类折叠手风琴菜单 开始 --> <div class="subnavbox bg-white radius"> <h2 class="bg-blue text-white">{eyou:channelartlist typeid='$eyou.field.typeid|gettoptyp
阅读全文
摘要:<!-- 一级栏目名称 --> <h1>{eyou:channelartlist typeid='$eyou.field.typeid|gettoptype=###,typeid'}{eyou:field name='typename' /}{/eyou:channelartlist}</h1> <
阅读全文
摘要:<a href="{$eyou.field.typeid|gettoptype=###,'typeurl'}" title="{$eyou.field.typeid|gettoptype=###,'typename'}" {eyou:eq name='$eyou.field.typeid' valu
阅读全文
摘要:<a href="{$eyou.field.ptypeurl}">{$eyou.field.ptypename}</a> 上级栏目ID:{$eyou.field.ptypeid} 上级栏目链接:{$eyou.field.ptypeurl} 上级栏目名称:{$eyou.field.ptypename}
阅读全文
摘要:{eyou:channel type="self" currentstyle="active"} <a href="{$field.typeurl}" title="{$field.typename}" class="{$field.currentstyle}">{$field.typename}<
阅读全文
摘要:<a href="{$eyou.field.typeurl}">{$eyou.field.typename}</a>
阅读全文
摘要:{eyou:memberinfos mid='$field.users_id' id='users'} 会员昵称:{$users.nickname} 会员头像:<img src="{$users.head_pic}" width='50' height='50' /> {$users.hidden}
阅读全文
摘要:{eyou:list} <a href="{$field.arcurl}">{$field.title}</a> {eyou:arcview aid='$field.aid' id='view'} {eyou:volist name="$view.file_list" id='vo'} <a hre
阅读全文
摘要:{eyou:list pagesize='12' id='field'} {eyou:arcview id='field2'} {eyou:volist name="$field2.image_list" id='field3'} <img src="{$field3.image_url}" alt
阅读全文
摘要:{eyou:list} 标题:{$field.title} 阅读数:{$field.click} 标签:{eyou:tag sort='now' getall='0' row='10' id='field2'} <a href='{$field2.link}' class="tag">{$field
阅读全文
摘要:{eyou:tag getall='1' row='50' sort='hot'} <a href='{$field.link}'>{$field.tag}</a> {/eyou:tag} getall='' 获取类型,0为当前内容页TAG标记,1为获取全部TAG标记 sort='' 标签排序方式
阅读全文
摘要:{eyou:arclist addfields='content' } <span>{$field.content}</span> {/eyou:arclist} addfields='content' 为调取文章内容的标签属性,必加在arclist里 {$field.content} 为调取文章内
阅读全文
摘要:{eyou:eq name='$field.is_litpic' value='1'} <img src="{$field.litpic}"> {/eyou:eq} 可以放在list和arclist文档列表内,可以结合{eyou:else/}
阅读全文
摘要:<div id='tagid名称'> {eyou:arclist typeid='栏目ID' row='10' tagid='tagid名称'} <a href='{$field.arcurl}'>{$field.title}</a> {/eyou:arclist} </div> {eyou:arc
阅读全文
摘要:{eyou:pagelist listitem='index,pre,pageno,next,end,info' listsize=‘2’ /} listsize=2 表示 [1][2][3][4][5] 这些项的长度 - 1,再除以2得出的结果值 listitem='index,pre,pagen
阅读全文
摘要:{eyou:channel id="field" currentstyle="active"} <li class="{$field.currentstyle}"> <a href="{$field.typeurl}">{$field.typename}</a></li> {/eyou:channe
阅读全文
摘要:{eyou:channel type="first" id="field" currentstyle="hover"} <ul class="一级"> <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typen
阅读全文
摘要:{eyou:channel type="first" row="60" id="field" currentstyle="hover"} <li class="{$field.currentstyle}"><a href="{$field.typeurl}">{$field.typename}</a
阅读全文
摘要:{eyou:list titlelen='30' infolen='10' pagesize='20'} <a href='{$field.arcurl}'>{$field.title}</a> <span>{$field.seo_description}</span> {/eyou:list} t
阅读全文
摘要:{eyou:channel type="first"} <h2>{$field.typename}</h2> <!-- 这是二级分类名称 --> {eyou:notempty name="$field.children"} {eyou:channel name="$field.children" i
阅读全文
摘要:{eyou:channel type="first"} {$field.typename}<!-- 二级分类名称 --> {eyou:arclist typeid='$field.typeid' titlelen='68' row='9'} <a href="{$field.arcurl}">{$f
阅读全文
摘要:{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>
阅读全文
摘要:{eyou:arclist typeid='264' titlelen='70' row='3' } {eyou:if condition="$i%2 =='0'"} <img src="{$field.litpic}"> {$field.title} {eyou:else /} {$field.t
阅读全文
摘要:文档点击数 {$field.click} 文档标题 {$field.title} 文档链接 <a href='{$field.arcurl}'>{$field.title}</a> 文档id {$field.aid} list或或arclist可用{$field.aid},文章页用{$eyou.fi
阅读全文
摘要:{$field.update_time|MyDate='Y-m-d',###}
阅读全文
摘要:样式一 {$field.add_time|MyDate='Y-m-d',###} 样式二 {$field.add_time|MyDate='m-d',###} 样式三 {$field.add_time|MyDate='Y年m月d日',###} 样式四 {$eyou.field.update_time
阅读全文
摘要:{eyou:arclist typeid='8' flag='c' infolen='20' titlelen='30' row='10'} <a href='{$field.arcurl}'>{$field.title}</a> {/eyou:arclist} 常用文档列表调用
阅读全文
摘要:{eyou:include file="header.htm" /} 尾部 {eyou:include file="footer.htm" /}
阅读全文
摘要:<title>{eyou:global name='web_title' /}_{eyou:global name='web_name' /}</title> <meta name="description" content="{eyou:global name='web_description'
阅读全文
摘要:一、加字段 给栏目加一个自定义开关字段,开就加nofollow。 1、高级选项-频道模型-栏目字段管理(右上角) 2、新增字段-中文名称自已想,英文名称我这里用is_nofollow吧,类型选择开关 3、那么在每个栏目都出现这个字段了,进入对应栏目进行编辑,将这个字段设置为开。 4、在栏目<a>里加
阅读全文
摘要:<a href="{$eyou.field.ptypeurl}">{$eyou.field.ptypename}</a> 上级栏目链接标签 {$eyou.field.ptypeurl} 上级栏目名称标签 {$eyou.field.ptypename}
阅读全文
摘要:获取顶级栏目名称代码是“{$eyou.field.typeid|gettoptype=###,'typename'}”获取顶级栏目链接代码是“{$eyou.field.typeid|gettoptype=###,'typeurl'}”获取顶级栏目英文名称代码是“{$eyou.field.typeid
阅读全文
摘要:如果我们想获取当前文章的链接怎么办呢?其实这个很容易,只要一个标签就可以获取当前url地址! {$eyou.field.pageurl} 这样就可以了。。
阅读全文