Under normal circumstances, a popular tag is placed next to the search box in the dedecms template. what should we do if we want to replace the popular tag with the popular keyword?
Under normal circumstances, a popular tag is placed next to the search box in the dedecms template. what should we do if we want to replace the popular tag with the popular keyword?
We can use the hot keyword hotwords tag provided by dede for implementation. for specific calls, see the following:
Tag name: hotwords
Function description: get popular keywords for website search. applicability:
Global Basic syntax:
{Dede: hotwords/} parameter description: num = '5' number of keywords subday = '000000' number of days maxlength = '32' maximum length of keywords
In many cases, if you need to display the latest popular search in the search box, the popular search tag of dedecms is:
{Dede: hotwords num = '3 '/}
"3" indicates the number of calls