How to customize the title read in ecmall template editing, ecmall Template

Source: Internet
Author: User

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:

 


 
  1. <Head>
  2. <Base href = "{$ site_url}/"/>
  3. <Meta http-equiv = "Content-Type" content = "text/html; charset = {$ charset}"/>
  4. <Span style = "color: # ff0000;" >{$ page_seo} </span>
  5. <Meta name = "viewport" content = "width = 1200, initial-scale = 1.0, minimum-scale = 0.5, maximum-scale = 2.0, user-scalable = yes"/>
  6. <Meta name = "apple-mobile-web-app-capable" content = "yes"/>
  7. <Meta name = "format-detection" content = "telephone = no"/>
  8. <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:

 


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

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.

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.