您现在的位置是:首页 > 学无止境 > 帝国CMS网站首页帝国CMS 帝国CMS动态页调用搜索关键词的方法
帝国CMS动态页调用搜索关键词的方法
- 帝国CMS
- 2019-07-12
简介本文教大家如何在动态页调用搜索关键词的方法。字数
160
效果图
效果如下:
利用自定义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--]
转载:
感谢您对莫愁个人博客网站平台的认可,非常欢迎各位朋友分享到个人站长或者朋友圈,但转载请说明文章出处“来源莫愁个人博客 https://www.mochoublog.com/study/274.html”。
- 帝国CMS
- 2019-07-12
效果图
效果如下:
利用自定义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--]
转载: 感谢您对莫愁个人博客网站平台的认可,非常欢迎各位朋友分享到个人站长或者朋友圈,但转载请说明文章出处“来源莫愁个人博客 https://www.mochoublog.com/study/274.html”。