Home  >  Article  >  CMS Tutorial  >  Let’s talk about the steps to modify the column alias called by Empire CMS

Let’s talk about the steps to modify the column alias called by Empire CMS

silencement
silencementforward
2019-11-30 13:25:341988browse

Let’s talk about the steps to modify the column alias called by Empire CMS

Please pay attention to the following modification method

After modifying the column alias, use [!--bname--] to call

Open e/class/t_functions .php
Search and locate the
column navigation tag with template
Modify 1

code as follows:

//替换变量
$bclassname=$class_r[$classid][classname];
$bname=$class_r[$classid][bname];
$br[classid]=$classid;
$bclassurl=sys_ReturnBqClassname($br,9);
$listtemp=str_replace("[!--bclassname--]",$bclassname,$listtemp);
$listtemp=str_replace("[!--bname--]",$bname,$listtemp);
$listtemp=str_replace("[!--bclassurl--]",$bclassurl,$listtemp);

Modify 2

code As follows:

$sql=$empire->query("select classid,classname,bname,islast,sonclass,tbname,intro,classimg from 
{$dbtbpre}enewsclass where bclassid='$classid' and showclass=0 order by myorder,classid".$limit);

Modify 3

The code is as follows:

//栏目名称
$listtemp=str_replace("[!--classname--]",$r[classname],$listtemp);
//栏目别名
$listtemp=str_replace("[!--bname--]",$r[bname],$listtemp);
//栏目id
$listtemp=str_replace("[!--classid--]",$r[classid],$listtemp);

Recommended to study "Empirecms Tutorial"

The above is the detailed content of Let’s talk about the steps to modify the column alias called by Empire CMS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:www.word666.com/cms. If there is any infringement, please contact admin@php.cn delete