ecmall模板编辑中的标题如何自定义读取
2024-09-04 04:05:35
碰见了一个问题,刚上线的ecmall项目。客户说标题不要商城首页这四个字。
我去源码里找,找了半天才找到。
问题描述如下:
找到title的最原始模板themes\mall\tmall\top.html,打开后:
- <head>
- <base href="{$site_url}/" />
- <meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
- <span style="color:#ff0000;">{$page_seo}</span>
- <meta name="viewport" content="width=1200, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" />
- <meta name="apple-mobile-web-app-capable" content="yes" />
- <meta name="format-detection" content="telephone=no" />
- <link rel="shortcut icon" href=" http://www.ya-jing.cn "/>
标签为:$page_seo
这个title description keywords 写到一起了。如果单改title,需要找到ecmall中的$page_seo的定义处。
找了一大圈,终于找到。在这里:\app\default.app.php
打开如下:
- <?php
- class DefaultApp extends MallbaseApp
- {
- function index()
- {
- $this->assign('index', 1); // 标识当前页面是首页,用于设置导航状态
- $this->assign('icp_number', Conf::get('icp_number'));
- $this->_config_seo(array(
- <strong><span style="color:#ff6666;"> 'title' => Lang::get('mall_index') . ' - ' . Conf::get('site_title'),</span></strong>
- ));
- $this->assign('page_description', Conf::get('site_description'));
- $this->assign('page_keywords', Conf::get('site_keywords'));
- $this->display('index.html');
- }
- }
- ?>
其中红色标记中的代码,去掉lang::get(‘mall_index’).就可以了。
项目地址:www.meichigou.com,今天新上线。欢迎大家指导。另外,还有两个项目也在进行中,其中一个www.ya-jing.cn配资公司进行的很顺利。
最新文章
- 【POJ-1390】Blocks 区间DP
- iOS通过ARC管理内存(内容根据iOS编程编写)
- hybird之web动态换肤实现
- 河南省第八届ACM程序设计大赛
- eclipse项目导入androidstudio
- MAXIMO系统 java webservice 中PDA移动应用系统开发
- Coco2dx 3D例子
- Shell脚本语言与编译型语言的差异
- Linq延迟执行
- OC基础5:继承
- C语言的ELF文件格式学习
- 使用过渡场景在多个场景的切换COCOS2D(4)
- OpenSuSE Linux下安装Oracle10g的步骤
- Linux编译Windows共享目录下代码
- There is No Alternative~最小生成树变形
- android客户端向服务器发送请求中文乱码的问
- Sql查询今天、本周和本月的记录(时间字段为时间戳)
- echarts4的学习
- QML C++插件dll引用
- js字符串与十六进制相互转换