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

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

WBOY
Release: 2016-06-01 11:50:22
Original
791 people have browsed it

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

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

注意:此处的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}
Copy after login

 

最终效果为:

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template