(此图片来源于网络,如有侵权,请联系删除! )
后台-系统-基本参数-添加变量
- 变量名称 cfg_hotkeys
- 变量类型 文本
- 参数说明 热门关键词
- 变量值 牛肉,排骨,番茄,芒果,香菇,玉米
(此图片来源于网络,如有侵权,请联系删除! )
前台模板标签调用
{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} |
(此图片来源于网络,如有侵权,请联系删除! )
免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)