
Archives for 日常随笔
后台>系统>系统参数设置>基本属性:关闭前台模块相关功能,去掉对应模块的选择。
...more»
关闭水印后,之前上传的图片里的水印能去掉吗?
答: 不能。重新上传图片,替换掉带水印的图片即可。
...more»
{eyou:collect id='collect' cancel="<img src='./../public/static/common/images/cancel.png' />" collect="<img src='./../public/static/common/images/shoucang.png' />"}
<a {$collect.onclick}>{$collect.cancel}</a>
(收藏数:<span {$collect.numId}></span>次)
{$collect.hidden}
{/eyou:collect}
...more»
【基础用法】标签:lang描述:获取语言包变量的数据。用法: {eyou:lang name='这里填写变量名' /}属性: name='' 指定语言包变量名(来自网站后台 - 开启多语言 - 语言设置 - 模板语言变量 / 官方语言包变量)涉及表字段: 请查阅易优数据字典,找到表名 ey_language_pack 【更多示例】 -------------------------------示例1-------------------------------- 描述:把模板里的中文“网站首页”替换成支持多语言调法 {eyou:lang name='sys9' /}
...more»
优势: 兼容所有浏览器
<script language="javascript" type="text/javascript">
function CheckForm()
{
if(document.getElementById("co2").value==""){
//这里写你要提示的操作
alert("Name cannot be empty");
return false;
}
if(document.getElementById("tel").value==""){
...more»
"栏目名"与"栏目别名"的区别.
"栏目别名":前台所有显示的"栏目名"(如标签里的"是否显示栏目名"就是显示这个)
...more»
修改文件
/application/home/controller/Tags.php
找到如下代码(大概在130行左右):
'litpic' => !empty($tagindexInfo) ? handle_subdir_pic($tagindexInfo) : $tagindexInfo,
在此代码下方添加代码
'tagcount' => !empty($tagindexInfo) ? $tagindexInfo : $tagindexInfo,
'tagtotal' => !empty($tagindexInfo) ? $tagindexInfo : $tagindexInfo,
模板调取标签
{$eyou.field.tagtotal}
{$eyou.field.tagcount}
...more»
eyou: 是一个自定义标签的前缀或命名空间。global 指示这个标签是用来获取全局变量的。name='web_name' 指定了要获取的全局变量的名称。
...more»
模板文件内页一般使用<title>{$eyou.field.seo_title}</title>调用 改成<title>{$eyou.field.title}</title>即可
...more»
除了首页外,其他页面都打不开,状况或错误提示,是没有按照安装说明中讲的“初始化内置数据”这个步骤操作的原因。
...more»
