Home >Backend Development >PHP Tutorial >destoon实现调用热门关键字的方法_PHP

destoon实现调用热门关键字的方法_PHP

WBOY
WBOYOriginal
2016-06-01 11:50:22792browse

本文所述的destoon调用热门关键字的方法是根据数据库里面的保存的搜索的关键字来显示的。
每个模块下面都有各自的关键字
下面是调用的标签:

<!--{tag("moduleid=$searchid&table=keyword&condition=moduleid=$searchid and status=3&pagesize=9&order=total_search desc&template=index-keyword")}-->

注意:此处的pagesize=9是调用的关键字的显示的条数,你可以根据自己的需要自行修改
template=index-keyword 模板是名为index-keyword.htm的文件
 
index-keyword.html里面的内容为:

{loop $tags $t}
{php $lian=$t[moduleid]}
<li><a href="{$MODULE[$lian][linkurl]}search.php&#63;kw={$t[keyword]}" rel="external nofollow" title="{$t[keyword]}">{$t[keyword]}</a></li>
{/loop}

 

最终效果为:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn