search
HomeCMS TutorialEmpire CMSHow Imperial CMS achieves the click effect of search keywords

How Imperial CMS achieves the click effect of search keywords

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=&#39;/e/search/result/?searchid=[!--id--]&#39;>[!--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!

Statement
This article is reproduced at:www.word666.com. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Article

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.