随笔分类 - eyoucms
摘要:{eyou:channel type="son" typeid="68" row="10" id="field" currentstyle="inNACtive"} <li style="cursor: pointer;" class="{$field.currentstyle}"> <a clas
阅读全文
摘要:{eyou:if condition="$i%2== '1'"} 这里注意点是需要用到eyou:if,套在eyou:list里边。
阅读全文
摘要:通过下边这种写法,就可以判断是否展示或者隐藏div,只有是当前栏目是 200 的时候,才会展示,否则隐藏哦。 {eyou:if condition='($eyou.field.typeid == 200)'} <div style="display:block;"> {eyou:channel ty
阅读全文
摘要:下方是搜索代码,不管首页或者列表页以及内容页都已经使用。 {eyou:searchform type='default'} <form method="get" action="{$field.action}"> <div class="rmssLB"> <input type="text" cla
阅读全文
摘要:{eyou:type typeid='你的栏目id' addtable='single_content'} {$field.content|html_msubstr=###,0,155}... {/eyou:type}(此标签过滤样式) {eyou:type typeid='你的栏目id' addt
阅读全文
摘要:首先要不栏目设置成留言栏目,然后再把属性列表中加上一些需要的属性。 然后再把下方代码复制到模板中。 {eyou:guestbookform typeid="106" type='default' } <form method="POST" enctype="multipart/form-data"
阅读全文
摘要:{eyou:type typeid="96"} <a href='{$field.typeurl}' class="foot-tit">{$field.typename}</a> {/eyou:type} 注:经过测试 typeid必须用双引号,以及标签 {/eyou:type}里边千万不要有空格。
阅读全文
摘要:{eyou:channel type="son" typeid="68" row="10" id="field" currentstyle="inNACtive"} <li style="cursor: pointer;" class="{$field.currentstyle}"> <a clas
阅读全文
摘要:这是获取栏目ID96的所有子栏目,这里一定要用son,因为是子栏目哦! {eyou:channel type="son" typeid="96" id="field" currentstyle="active"} <a href="{$field.typeurl}">{$field.typename
阅读全文
摘要:针对不同服务器、虚拟空间,运行PHP的环境也有所不同,目前主要分为:Nginx、apache、IIS以及其他服务器。下面分享如何去掉URL上的index.php字符,记得在管理后台清除缓存,对于一些ECS服务器可能要重启nginx等服务! 【Nginx服务器】 在原有的nginx重写文件里新增以下代
阅读全文
摘要:1、调用图片路径 <img src="{eyou:global name='web_templets_pc' /}/static/picture/b01_title.png"> 2、列表内容循环标签写法 {eyou:list titlelen='100' pagesize='30'} <div cl
阅读全文