How to customize the title read in ecmall template editing, ecmall Template
I encountered a problem with the newly launched ecmall project. The customer said that the title should not be the homepage of the mall.
I went to the source code and found it for half a day.
The problem is described as follows:
Find the original title template 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"/>
Tags: $ page_seo
This title description keywords is written together. If you change the title, find the $ page_seo definition in ecmall.
After finding a large circle, I finally found it. Here: \ app \ default. app. php
Open as follows:
- <? Php
- Class DefaultApp extends MallbaseApp
- {
- Function index ()
- {
- $ This-> assign ('index', 1); // identifies the current page as the homepage for setting the navigation status
- $ This-> assign ('icp _ number', Conf: get ('icp _ number '));
- $ This-> _ config_seo (array (
- <Strong> <span style = "color: # ff6666;"> 'title' => Lang: get ('all _ Index '). '-'. conf: get ('site _ title'), </span> </strong>
- ));
- $ This-> assign ('page _ description', Conf: get ('site _ description '));
- $ This-> assign ('page _ keyword', Conf: get ('site _ keyword '));
- $ This-> display('index.html ');
- }
- }
- ?>
The Code marked in red removes lang: get ('mall _ Index.
Project address: www.meichigou.com. It is released today. Thank you for your guidance. In addition, there are two projects are also in progress, one of the www.ya-jing.cn capital allocation company is very smooth.