Get the App
SLTechnology News&Howtos  ›  Development  › 

How does Imperial CMS achieve the effect of search keywords with clicks

Shulou Source: shulou.com Published: 2022-06-01 11:43:34 10月04日 Update

This article mainly introduces the Imperial CMS how to achieve the search keyword with the number of clicks, the article is very detailed, has a certain reference value, interested friends must read it!

The specific implementation methods are as follows:

1. Create a custom JS template: the template contains the following:

The code is as follows:

[!-empirenews.listtemp--] [!-title--] ([!-writer--])

[!-- empirenews.listtemp--]

Explanation: the writer field here is originally the author, but it is not needed here. We use it to overreceive the number of clicks OnClick field.

two。 To create a new custom JS, query the SQL statement as follows. Remember to select the template we just created:

The code is as follows:

Selectsearchidasid,keyboardastitle,onclickaswriterfrom [! db.pre!] enewssearchwhereiskey=0orderby

Onclickdesclimit10

The above is all the content of the article "how does Imperial CMS achieve the effect of search keywords with clicks". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Templates clicks content keywords effects Empire search Code Fields articles other uses values authors interests guys Partners methods more knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology Huawei Microsoft MariaDB