Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Modify the method of calling column aliases in Imperial cms

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the method of modifying the alias of Imperial cms calling column, which is very detailed and has certain reference value. Interested friends must finish reading it!

Please pay attention to the following modification methods

The modified column alias is called using [!-- bname--]

Open e/class/t_functions.php

Search to locate to

Column navigation label with template

Modify 1

The code is as follows:

/ / replace the variable $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 learn the Imperial cms course

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:

/ / column name $listtemp=str_replace ("[!-- classname--]", $r [classname], $listtemp); / / column alias $listtemp=str_replace ("[!-- bname--]", $r [bname], $listtemp); / / column id$listtemp=str_replace ("[!-- classid--]", $r [classid], $listtemp); all of the above is the method of modifying Imperial cms calling column aliases. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report