织梦CMS自定义输出热门搜索关键词

后台-系统-基本参数-添加变量

织梦CMS自定义输出热门搜索关键词

前台模板标签调用

{dede:global.cfg_hotkeys runphp="yes"}
global $cfg_cmspath;
$hotkeys = explode(',',@me);
$result = '';
for($index=0;$index<count($hotkeys);$index++){
$result .= "<a href='{$cfg_cmspath}/plus/search.php?keyword=".urlencode($hotkeys[$index])."'>".$hotkeys[$index]."</a> ";
}
@me = $result;
{/dede:global.cfg_hotkeys}

织梦CMS自定义输出热门搜索关键词

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。