Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 07:38:06 10月03日 Update

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

Tags: Templates tags support dynamic empire search variables questions code files more pages help answers easy easy one line two content place Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Tech Info Docker Huawei OPPO Reno