The example of this article describes the method of Imperial CMS to achieve the click effect of search keywords. Share it with everyone for your reference. The specific implementation method is as follows:
1. Create a custom JS template: The template content is as follows:
The code is as follows:
[!--empirenews.listtemp--]<a href='/e/search/result/?searchid=[!--id--]'>[!--title--]([!--writer--]) </a> [!--empirenews.listtemp--]
Explanation: The writer field here is originally It is the author, but it is not needed here. We use it to over-receive the click number OnClick field.
It is recommended to study "Empire cms tutorial"
2. Create a new custom JS, the query SQL statement is as follows, remember to select the template as the newly created template we just created:
The code is as follows:
select searchid as id,keyboard as title,onclick as writer from [!db.pre!]enewssearch where iskey=0 order by onclick desc limit 10
I hope this article will be helpful to everyone’s Imperial CMS website building.
The above is the detailed content of How Imperial CMS achieves the click effect of search keywords. 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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

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.

SublimeText3 English version
Recommended: Win version, supports code prompts!

SublimeText3 Chinese version
Chinese version, very easy to use

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software