后台-系统-基本参数-添加变量
变量名称: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}