How to customize the title read in ecmall template editing

Source: Internet
Author: User
: 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:


  1. {$ 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:


  1. Class DefaultApp extends MallbaseApp
  2. {
  3. Function index ()
  4. {
  5. $ This-> assign ('index', 1); // identifies the current page as the homepage for setting the navigation status
  6. $ This-> assign ('icp _ number', Conf: get ('icp _ number '));
  7. $ This-> _ config_seo (array (
  8. "Color: # ff6666;"> 'title' => Lang: get ('All _ INDEX '). '-'. conf: get ('site _ title '),
  9. ));
  10. $ This-> assign ('page _ description', Conf: get ('site _ description '));
  11. $ This-> assign ('page _ keyword', Conf: get ('site _ keyword '));
  12. $ This-> display('index.html ');
  13. }
  14. }
  15. ?>

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.