dedecms怎么调用指定栏目图片
如上图,把竖着的看做三个栏目,现在图片都是雷同的,请大侠们帮忙改下代码,让模板调用相应栏目的图片,下面是调用代码{dede:arclistrow=3titlelen=20...
如上图,把竖着的看做三个栏目,现在图片都是雷同的,请大侠们帮忙改下代码,让模板调用相应栏目的图片,下面是调用代码 {dede:arclist row=3 titlelen=20 orderby=pubdate type='image.' imgwidth='152' imgheight='98'} <dd><a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]"{dede:field name="title"/}></span> </dd>{/dede:arclist}</a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">{dede:field name="title"/}</span> </dd>
展开
2个回答
展开全部
dedecms调用指定栏目图片代码如下:
{dede:arclist row=3 titlelen=20 orderby=pubdate type='image.' imgwidth='152' imgheight='98'} <dd><a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]"{dede:field name="title"/}></span> </dd>{/dede:arclist}</a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">{dede:field name="title"/}</span> </dd>
{dede:arclist row=3 titlelen=20 orderby=pubdate type='image.' imgwidth='152' imgheight='98'} <dd><a href="[field:arcurl/]"><img src="[field:picname/]" alt="[field:title/]" ></a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]"{dede:field name="title"/}></span> </dd>{/dede:arclist}</a><span><a title="[field:title function='htmlspecialchars(@me)'/] " href="[field:arcurl /]">{dede:field name="title"/}</span> </dd>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询