In the edit ecmall template, how to customize the title to read the ecmall template. The ecmall template encountered a problem about how to customize the title to read. 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 to edit the ecmall template to customize how to read the title, 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:
-
-
-
-
- {$ Page_seo}
-
-
-
-
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:
-
-
- 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 (
- "Color: # ff6666;"> 'title' => Lang: get ('All _ INDEX '). '-'. conf: get ('site _ title '),
-
- ));
- $ 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.
Middleware encountered a problem, just launched the ecmall project. The customer said that the title should not be the homepage of the mall. I will go to the source code...