织梦(dedecms)仿站课程第第十四讲—特定栏目图片调用

fieldset{padding:10px;}

织梦(dedecms)仿站教程第第十四讲—特定栏目图片调用这一讲说下织梦图片文章的调用,首先看代码:

    <DIV class=title2><H3>拳击游戏</H3><DIV class=more><A href="http://www.quanji.cn/game"><IMG src="{dede:global.cfg_templets_skin/}/images/more.gif"></A></DIV></DIV><DIV class=left_b><DIV class=game_img><UL> <LI><A href="http://www.quanji.cn/game/10.html" target=_blank><IMG src="{dede:global.cfg_templets_skin/}/images/e8aa5228aa1900c2a5c78ca5a284b2eb.gif"></A><SPAN> <A href="http://www.heatpress123.net/jlnews/gsdt/307.html" target=_blank>职业拳击</A></SPAN> <LI><A href="http://www.huylin.com/rzyms/fzms/" target=_blank><IMG src="{dede:global.cfg_templets_skin/}/images/c001184729dab9a5b6aa3d521c3ebe84.gif"></A><SPAN> <A href="http://www.quanji.cn/game/2009-06-01/8.html" target=_blank>打拳击</A></SPAN> <LI><A href="http://www.quanji.cn/game/2009-06-01/7.html" target=_blank><IMG src="{dede:global.cfg_templets_skin/}/images/6d90241cef7fbce745599be86f59fb5e.gif"></A><SPAN> <A href="http://www.quanji.cn/game/2009-06-01/7.html" target=_blank>希腊拳击</A></SPAN> </LI></UL></DIV><DIV class=game_list><UL> <LI><A title=职业拳击 href="http://www.quanji.cn/game/10.html" target=_blank>职业拳击</A> <LI><A title=真实拳击 href="http://www.quanji.cn/game/2009-06-01/9.html" target=_blank>真实拳击</A> <LI><A title=打拳击 href="http://www.quanji.cn/game/2009-06-01/8.html" target=_blank>打拳击</A> <LI><A title=希腊拳击 href="http://www.quanji.cn/game/2009-06-01/7.html" target=_blank>希腊拳击</A> <LI><A title=拳击血腥击打 href="http://www.quanji.cn/game/2009-05-31/6.html" target=_blank>拳击血腥击打</A> <LI><A title=美眉拳击赛 href="http://www.quanji.cn/game/2009-05-31/5.html" target=_blank>美眉拳击赛</A> <LI><A title=海绵宝宝拳击 href="http://www.quanji.cn/game/2009-05-31/4.html" target=_blank>海绵宝宝拳击</A> <LI><A title=史努比打拳击 href="http://www.quanji.cn/game/2009-05-31/3.html" target=_blank>史努比打拳击</A> <LI><A title=搞怪拳击赛 href="http://www.quanji.cn/game/2009-05-31/2.html" target=_blank>搞怪拳击赛</A> </LI></UL></DIV></DIV>

修改为织梦的调用代码:

    <DIV class=title2>{dede:type typeid=’6′}<H3>[field:typename /]</H3>{/dede:type} <DIV class=more><A href="{dede:type typeid=’9′}[field:typelink /]{/dede:type}"><IMG src="{dede:global.cfg_templets_skin/}/images/more.gif"></A></DIV></DIV><DIV class=left_b><DIV class=game_img><UL>{dede:arclisttypeid=’6′ row=’3′ titlelen=’10’ type=’image.’} <LI><A href="[field:arcurl/]" target=_blank><IMG src="[field:litpic/]"></A><SPAN> <A href="[field:arcurl/]" target=_blank>[field:title/]</A></SPAN> {/dede:arclist} </LI></UL></DIV><DIV class=game_list><UL>{dede:arclist typeid=’6′ row=’9′ titlelen=’14’} <LI><A title="[field:title/]" href="[field:arcurl/]" target=_blank>[field:title/]</A>{/dede:arclist} </LI></UL></DIV></DIV>

代码解释:代码分为三段,第一段和第三段上一讲已讲过了,不再重复。第二段代码其实上一讲也讲过了,只是多了一点内容。type=’image.’ 调用有缩略图的内容。[field:litpic/] 调用出缩略图的地址。详细教程要参考arclist标签的手册:http://help.dedecms.com/v53/archives/tag/global/arclist/好了,我们这一讲也讲完了,嘿嘿,内容不多啊!大家不要急,慢慢来。俺写的有些手痛呢!最后,看下前台演示:凡标识为福星网络原创的内容系福星网络版权内容,转载请注时来源于热转印纸(www.huylin.com)。谢谢合作!那绿叶上的水珠,是思念的泪滴。

织梦(dedecms)仿站课程第第十四讲—特定栏目图片调用

相关文章:

你感兴趣的文章:

标签云: