时间:2022-05-26 01:06:01 | 来源:网络营销
时间:2022-05-26 01:06:01 来源:网络营销
在上一篇《织梦(dedecms)标签调用代码大全》一文中,我已经跟大家介绍了一些我们常用的织梦模板调用标签,今天,亿企邦又特意整理了一份关于织梦文章样式属性的调用标签,收集了各式各样的调用样式及调用标签,在此,也在亿企邦上跟大家一起分享一下:{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}或
[field:textlink/]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}2、头条文章调用标签
<a title="[field:title function='htmlspecialchars(@me)'/]" href="[field:filename/]" target="_blank">[field:title/]</a>
{/dede:arclist}
{dede:arclist row='1' titlelen='40' orderby='pubdate' flag='h' idlist=''}或
<h1><a href="[field:filename/]">[field:title/]</a></h1>
<p>[field:info/]……<a href="[field:filename/]" target="_blank">[查阅全文]</a></p>
{/dede:arclist}
{dede:arclist row=1 titlelen=24 orderby=pubdate flag=h}亿企邦注解——关于文章附加属性的调用标签:
[field:textlink/]
<span>[field:description/]……<a href="[field:arcurl/]">[查阅全文]</a></span>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='rand' idlist=''}或
[field:textlink/]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='rand' idlist=''}亿企邦注解——关于文章排列顺序的调用标签:
<a href="[field:filename/]" target="_blank">[field:title/]</a>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate'}亿企邦注解:[field:description /]织梦调用描述的默认代码,function='cn_substr(@me,110)用来控制显示的字数,另外也可以这样写:
<li>
· <a href="[field:arcurl/]" title="[field:fulltitle/]">[field:title/]</a>
<p>[field:description function='cn_substr(@me,110)'/]</p>
</li>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' infolen='110' orderby='pubdate'}亿企邦注解:infolen='110'用来控制描述的字数,[field:info/]用来调用摘要。
<li>·<a href="[field:arcurl/]" title="[field:fulltitle/]">[field:title/]</a>
<p>[field:info/]</p>
</li>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}亿企邦注解:
【[field:typelink/]】[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist='' type='image.'}亿企邦注解——关于文章筛选的调用标签:
[field:textlink/]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist='' keyword='seo'}8、只调用最近10天的文章
[field:textlink/]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist='' subday='10'}9、图文调用标签
[field:textlink/]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}或
<table width="98%" border="0" cellspacing="2" cellpadding="0">
<tbody><tr><td align="center">[field:imglink/]</td></tr>
<tr><td align="center">[field:textlink/]</td></tr>
</tbody></table>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}10、图文及简介的调用标签
<a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a>
<a href="[field:filename/]" target="_blank">[field:title/]</a>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}11、调用文字链接标记
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tbody><tr>
<td width="30%" rowspan="2" align="center">[field:imglink/]</td>
<td width="70%"><a href="[field:filename/]">[field:title/]</a></td>
</tr>
<tr><td>[field:info/]</td></tr>
</tbody></table>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}或
<a href="[field:aucurl/]" title="[field:title/]">[field:title/]</a>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate' idlist=''}12、查阅全文调用标签
<a title="[field:title function='htmlspecialchars(@me)'/]" href="[field:arcurl /]">[field:title /]</a>
{/dede:arclist}
<a href="[field:arcurl/]">查阅全文...</a>或
<a href="[field:filename/]" target="_blank">[详细]</a>13、调用缩略图
<img src='{dede:field name="litpic"/}'>14、调用图片链接标记
<a href='[field:arcurl /]'>[field:image/]</a>或
<a href="[field:arcurl/]" target="_blank"><img src="[field:picname/]" alt="[field:title/]" ></a>15、规定图文宽度和高度的调用标签
{dede:arclist row=1 titlelen=20 orderby=pubdate type='image.' imgwidth='200' imgheight='150'}16、相关文档调用标签
<a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a>
<span>
<a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">[field:title /]</a>
</span>
{/dede:arclist}
{dede:likeart titlelen='24' row='10'}17、列表隔5行加一行线
<a title="[field:title function='htmlspecialchars(@me)'/]" href="[field:arcurl /]">[field:title /]</a>
{/dede:likeart}
{dede:list pagesize='50'}18、文章列表“隔行换色”的方法
<LI>
<a href="[field:arcurl /]" title="[field:title function='htmlspecialchars(@me)'/]"
target=_blank>[field:title function="cn_substr(@me,48)"/]</a>
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]<br>
[field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="<hr />";
else @me="";
[/field:global]
{/dede:list}
<DIV class="line2 m1 m3"></DIV>
</LI>
{dede:arclist orderby=pubdate titlelen='26' row='10'}19、在24小时内发布更新的文章时间显示为红色
[field:global runphp='yes' name=autoindex]
$a="<div id='a'>";
$b="<div id='b'>";
if ((@me%2)==0) @me=$a;
else @me=$b;
[/field:global]
<ul>
<li>[field:title/]</li>
</ul>
</div>
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate'}或
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate'}20、近三天(或当天)发布的文章显示红色日期
[field:pubdate runphp="yes"]
if((time()-@me)<(60*60*24)){@me=' <font color="#ff6600">'.strftime("%m-%d",@me).'</FONT>';}
else {@me=strftime("%m-%d",@me);}
[/field:pubdate]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate'}亿企邦注解:如果只要当天的文章变红色,把3600*24*3改为3600*24即可。
[field:pubdate runphp='yes']
$a="<font color=red>".strftime('%m-%d',@me)."</font>";
$b=strftime('%m-%d',@me);
$ntime = time();
$day3 = 3600 * 24 * 3;
if(($ntime - @me) < $day3) @me = $a;
else @me =$b;
[/field:pubdate]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate'}亿企邦注解:主要是围绕pubdate做文章,写扩展的。
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<font color='red'>(new)</font>";
else @me = $aa;
[/field:pubdate]
{/dede:arclist}
{dede:arclist row='10' titlelen='24' orderby='pubdate'}亿企邦注解:<img src='new.gif' />中不能用双引号。
[field:pubdate runphp='yes']
$aa=strftime('%m-%d',@me);
$ntime = time();
$tagtime = @me;
$day3 = 3600 * 24 * 3;
if($tagtime > $ntime-$day3) @me = "<img src='new.gif' />".$aa;
else @me = $aa;
[/field:pubdate]
{/dede:arclist}
关键词:标签,汇总,调用