效果如下:
利用自定义js进行调用
Sql语句:
select searchid as id,keyboard as title from [!db.pre!]enewssearch where iskey=0 order by searchid desc limit 5
模板内容如下:
[!--empirenews.listtemp--]<li><a href="/e/search/result/?searchid=[!--id--]" title="[!--oldtitle--]">[!--title--]</a></li>[!--empirenews.listtemp--]