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

How to call the Imperial CMS7.2 search template to support dynamic tags

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How to call the Imperial CMS7.2 search template to support dynamic tags? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.

Imperial cms site search generally does not support dynamic tag calls, if you want to call how to achieve it? It can be realized by modifying two places. Open the / e/search/result/index.php file and find it (the file has been changed, it is futile not to call it! )

Require (".. /.. / class/connect.php"); require (".. /.. / class/db_sql.php"); require (".. /.. / data/dbcache/class.php"); require (".. /.. / class/q_functions.php"); require ".. /" .LoadLang ("pub/fun.php")

Change it to the following

Require ('.. /.. / class/connect.php'); require ('.. /.. / class/db_sql.php'); require ('.. /.. / class/functions.php'); require ('.. /.. / class/t_functions.php'); require ('.. /.. / data/dbcache/class.php'); require ".. /" .LoadLang ("pub/fun.php")

Then look for:

/ / replace the public template variable $listtemp=$ temp [temptext]

Add the following code above:

/ / the page supports the tag $temp [temptext] = DtNewsBq ('list'.$tempid,$tempr [temptext], 0)

Ytkah has long guessed that you don't want to look for it line by line, , directly provide the whole modified code as follows

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