随笔分类 - eyou列表标签
摘要:在没有封面图片的时候,会随机显示出几张色彩不同的风格图片。这样整个效果就好很多,也能减少工作量,毕竟我们没太多时间去找封面图处理。我就想着用Eyoucms能执行PHP的功能,用rand随机下这几张图片出来,我用mt_rand,我们先将图片放到images,然后分别命名为1.jpg,2.jpg,3.j
阅读全文
摘要:从0开始的办法{$key}从1开始的办法{$i}如果想从2开始怎么办?只需+1就可实现{$i+1} {eyou:list pagesize ='10' titlelen="40" } <li class="yi{$i}"><a href="{$field.arcurl}"> {$field.titl
阅读全文
摘要:{$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)
阅读全文
摘要:<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} 为调取文章内
阅读全文