: This article mainly introduces how to customize the title for the ecmall template editing. if you are interested in the PHP Tutorial, refer to it. 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.
The preceding section describes how to customize the title read in the ecmall template editing, including some content, and hopes to help those who are interested in the PHP Tutorial.