Method for calling popular search keywords in dedecms templates

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.