详细内容:
{dede:arclist flag='h' infolen='80' titlelen='80' limit='0,1' typeid='2' orderby='pubdate' }
<a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title/]</a>
[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a>
{/dede:arclist}
单条循环:
{dede:arclist flag='h' titlelen='80' limit='1,7' typeid='2' orderby='pubdate' }
<li><a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title/]</a></li>
{/dede:arclist}
图片标签调用:
{dede:arclist flag='h' infolen='230' titlelen='80' type='image.' imgwidth='100' imgheight='123' typeid='29' row='12' orderby='pubdate'}
<a href="[field:arcurl /]" title="[field:fulltitle /]"target="_blank">[field:image/]</a>
<a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title/]</a>
[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a>
{/dede:arclist}
全局标签:{dede:global.cfg_cmsurl/}
http://tool.seowhy.com/linkdetection/
<a href=""οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{dede:global.cfg_basehost/}');">设为首页</a>
<a href="javascript:window.external.AddFavorite('{dede:global.cfg_basehost/}','{dede:global.cfg_webname/}')">加入收藏</a>
{dede:arclist infolen='80' titlelen='80' limit='0,1' typeid='32' orderby='pubdate' }
[field:title/]
[field:info/]...
{/dede:arclist}
二、我们还可以使用SQL进行调用,这样以来灵活性大大提高了,而且可以调用任意一个栏目ID的单页内容。
{dede:sql sql='Select content from dede_arctype where id=1'}
[field:content/]
{/dede:sql}
flag = 'h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]
{dede:arclist flag='h' infolen='80' titlelen='80' limit='0,1' typeid='2' orderby='pubdate' }
<a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title/]</a>
[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a>
{/dede:arclist}
单条循环:
{dede:arclist flag='h' titlelen='80' limit='1,7' typeid='2' orderby='pubdate' }
<li><a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title/]</a></li>
{/dede:arclist}
图片标签调用:
{dede:arclist flag='h' infolen='230' titlelen='80' type='image.' imgwidth='100' imgheight='123' typeid='29' row='12' orderby='pubdate'}
<a href="[field:arcurl /]" title="[field:fulltitle /]"target="_blank">[field:image/]</a>
<a href="[field:arcurl /]" title="[field:fulltitle /]" target="_blank">[field:title/]</a>
[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a>
{/dede:arclist}
全局标签:{dede:global.cfg_cmsurl/}
http://tool.seowhy.com/linkdetection/
<a href=""οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{dede:global.cfg_basehost/}');">设为首页</a>
<a href="javascript:window.external.AddFavorite('{dede:global.cfg_basehost/}','{dede:global.cfg_webname/}')">加入收藏</a>
{dede:arclist infolen='80' titlelen='80' limit='0,1' typeid='32' orderby='pubdate' }
[field:title/]
[field:info/]...
{/dede:arclist}
二、我们还可以使用SQL进行调用,这样以来灵活性大大提高了,而且可以调用任意一个栏目ID的单页内容。
{dede:sql sql='Select content from dede_arctype where id=1'}
[field:content/]
{/dede:sql}
flag = 'h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]