How does Imperial CMS achieve the effect of search keywords with clicks
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!