效果如下: 代码如下: {dede:sql sql=SELECT dede_archives.id as archives_id,dede_archives.*,dede_arctype.* FROM dede_archives INNER JOIN dede_arctype ON dede_archives.typeid=dede_arctype.id AND dede_archives.channel=22 LIMIT 0,6} ddcentera h
效果如下:

代码如下:
{dede:sql sql="SELECT dede_archives.id as archives_id,dede_archives.*,dede_arctype.* FROM dede_archives
INNER JOIN dede_arctype ON dede_archives.typeid=dede_arctype.id AND dede_archives.channel=22 LIMIT 0,6"}
<dd><center><a href="[field:typedir runphp='yes']@me=str_replace('{cmspath}','http://www.sucaiko.com','@me');[/field:typedir]/[field:archives_id/].html"><img src="[field:litpic/]" />[field:title/]</a></center></dd>
{/dede:sql}
以上代码是调出模型ID为22的栏目下的内容列表循环
<a href="[field:typedir runphp='yes']@me=str_replace('{cmspath}','http://www.sucaiko.com','@me');[/field:typedir]/[field:archives_id/].html">是每行的url写法