


How does Imperial CMS call column aliases in consideration of SEO optimization?
In the process of making the new template, since the column name is relatively long, there is no problem in using it in the title, which is beneficial to SEO. However, I don’t want it to be so long on the page. Just keep it simple. The column alias has been provided. It will be convenient if it can be called.
Please pay attention to the following modification method
After modifying the column alias, use [!--bname--] to call
Open e/class/t_functions.php
The following red parts are new statements.
The search locates
The code is as follows:
//带模板的栏目导航标签 修改1 //替换变量 $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);
Recommended to study "Empire cms tutorial"
Modify 2
The code is 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);
The above is the detailed content of How does Imperial CMS call column aliases in consideration of SEO optimization?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor