织梦文章地址SQL标签查询

{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>&nbsp;

{/dede:sql}

 

用SQL标签查询出文章地址

来自: http://hi.baidu.com/eatpeach/blog/item/a75f033363397ee11a4cffb3.html
posted @ 2012-05-04 10:30  Sue_娜  阅读(857)  评论(0编辑  收藏  举报