Home > Backend Development > PHP Tutorial > How to custom read the title in ecmall template editing

How to custom read the title in ecmall template editing

WBOY
Release: 2016-08-08 09:27:29
Original
935 people have browsed it

I encountered a problem with the newly launched ecmall project. The customer said that the title does not need the four words "mall homepage".

I went to look for it in the source code, and it took me a long time to find it.

The problem is described as follows:

Find the original template of title, themesmalltmalltop.html, and open it:


  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 "/>


Tagged: $page_seo

The title description keywords are written together. If you change the title alone, you need to find the definition of $page_seo in ecmall.

After searching a lot, I finally found it. Here: appdefault.app.php

Open as follows:


  1. class DefaultApp extends MallbaseApp
  2. {
  3. function index()
  4.                                      
  5.                                                                                                                                                                  
  6.                   $this->assign('icp_number', Conf::get('icp_number'));                                                                                                                                              
  7.                                                                                                                           , site_title'),
  8.          
  9. ));
  10.                                               $this->assign('page_description', Conf::get('site_description'));                                                                                                                                                                                             $this->assign('page_keywords', Conf::get(
  11. 'site_keywords'));
  12.                                                                                                 } } ?>
  13. For the code marked in red, remove lang::get(‘mall_index’). That’s it.
  14. Project address: www.meichigou.com, newly launched today. Welcome everyone’s guidance. In addition, there are two other projects in progress, one of which is going smoothly.
  15. The above introduces how to customize the reading of the title in ecmall template editing, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template