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

这一讲说下织梦图片文章的调用,首先看代码:
  1. <DIV class=title2>
  2. <H3>拳击游戏</H3>
  3. <DIV class=more><A href="http://www.quanji.cn/game"><IMG src="{dede:global.cfg_templets_skin/}/images/more.gif"></A></DIV></DIV>
  4. <DIV class=left_b>
  5. <DIV class=game_img>
  6. <UL>
  7. <LI><A href="http://www.quanji.cn/game/10.html" target=_blank><IMG src="{dede:global.cfg_templets_skin/}/images/e8aa5228aa1900c2a5c78ca5a284b2eb.gif"></A><SPAN>
  8. <A href="http://www.heatpress123.net/jlnews/gsdt/307.html" target=_blank>职业拳击</A></SPAN>
  9. <LI><A href="http://www.huylin.com/rzyms/fzms/" target=_blank><IMG src="{dede:global.cfg_templets_skin/}/images/c001184729dab9a5b6aa3d521c3ebe84.gif"></A><SPAN>
  10. <A href="http://www.quanji.cn/game/2009-06-01/8.html" target=_blank>打拳击</A></SPAN>
  11. <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>
  12. <A href="http://www.quanji.cn/game/2009-06-01/7.html" target=_blank>希腊拳击</A></SPAN>
  13. </LI>
  14. </UL>
  15. </DIV>
  16. <DIV class=game_list>
  17. <UL>
  18. <LI><A title=职业拳击 href="http://www.quanji.cn/game/10.html" target=_blank>职业拳击</A>
  19. <LI><A title=真实拳击 href="http://www.quanji.cn/game/2009-06-01/9.html" target=_blank>真实拳击</A>
  20. <LI><A title=打拳击 href="http://www.quanji.cn/game/2009-06-01/8.html" target=_blank>打拳击</A>
  21. <LI><A title=希腊拳击 href="http://www.quanji.cn/game/2009-06-01/7.html" target=_blank>希腊拳击</A>
  22. <LI><A title=拳击血腥击打 href="http://www.quanji.cn/game/2009-05-31/6.html" target=_blank>拳击血腥击打</A>
  23. <LI><A title=美眉拳击赛 href="http://www.quanji.cn/game/2009-05-31/5.html" target=_blank>美眉拳击赛</A>
  24. <LI><A title=海绵宝宝拳击 href="http://www.quanji.cn/game/2009-05-31/4.html" target=_blank>海绵宝宝拳击</A>
  25. <LI><A title=史努比打拳击 href="http://www.quanji.cn/game/2009-05-31/3.html" target=_blank>史努比打拳击</A>
  26. <LI><A title=搞怪拳击赛 href="http://www.quanji.cn/game/2009-05-31/2.html" target=_blank>搞怪拳击赛</A>
  27. </LI>
  28. </UL>
  29. </DIV>
  30. </DIV>
修改为织梦的调用代码:
  1. <DIV class=title2>
  2. {dede:type typeid='6'}<H3>[field:typename /]</H3>{/dede:type}
  3. <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>
  4. <DIV class=left_b>
  5. <DIV class=game_img>
  6. <UL>
  7. {dede:arclisttypeid='6' row='3' titlelen='10' type='image.'}
  8. <LI><A href="[field:arcurl/]" target=_blank><IMG src="[field:litpic/]"></A><SPAN>
  9. <A href="[field:arcurl/]" target=_blank>[field:title/]</A></SPAN>
  10. {/dede:arclist}
  11. </LI>
  12. </UL>
  13. </DIV>
  14. <DIV class=game_list>
  15. <UL>
  16. {dede:arclist typeid='6' row='9' titlelen='14'}
  17. <LI><A title="[field:title/]" href="[field:arcurl/]" target=_blank>[field:title/]</A>
  18. {/dede:arclist}
  19. </LI>
  20. </UL>
  21. </DIV>
  22. </DIV>
代码解释:
代码分为三段,第一段和第三段上一讲已讲过了,不再重复。
第二段代码其实上一讲也讲过了,只是多了一点内容。
type='image.' 调用有缩略图的内容。
[field:litpic/] 调用出缩略图的地址。
详细教程要参考arclist标签的手册:http://help.dedecms.com/v53/archives/tag/global/arclist/
好了,我们这一讲也讲完了,嘿嘿,内容不多啊!大家不要急,慢慢来。俺写的有些手痛呢!最后,看下前台演示:
凡标识为福星网络原创的内容系福星网络版权内容,转载请注时来源于热转印纸(www.huylin.com)。谢谢合作!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值