if ( ! function_exists('getlink')) { function getlink($dedetag){ //获得链接 $tmp = preg_split("/{*}/",$dedetag,-1,PREG_SPLIT_DELIM_CAPTURE); return substr($tmp[1],0,-11); } } 页面调用: {dede:arclist orderby='pubdate' orderway="desc" typeid='102,103,104,105' row='6' channelid="3" addfields='softlinks'} <li><a href="[field:softlinks function='getlink(@me)'/]" class="down">Download</a><a href="[field:softlinks/]">[field:title/]</a></li> {/dede:arclist} |
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!