`

织梦sql调用文章的时候,获取url方法

 
阅读更多
{dede:sql sql="SELECT  #@__archives.id,#@__archives.color,typedir,title FROM #@__archives,#@__arctype where #@__archives.typeid=#@__arctype.id  order by  #@__archives.id desc limit 6,2"}

<a href="[field:typedir runphp='yes']@me=str_replace('{cmspath}','http://www.dedecms.com','@me');[/field:typedir]/[field:id/].html" target="_blank"><font color="[field:color/]">[field:title/]</font></a>

{/dede:sql}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics