dedecms首页如何调用文章标题,摘要 以及有图片,没有图片的不调用
目前没有图片的也被调用出来了,自知道的帮帮忙<!--热门推荐--><divclass="hot"><divclass="com-title"><span><imgsrc=...
目前没有图片的也被调用出来了,自知道的帮帮忙
<!--热门推荐-->
<div class="hot">
<div class="com-title"><span><img src="/dedemao/html/images/symbol-6.png" alt="" />热门推荐</span></div>
{dede:arclist row=14 titlelen=60 noflag='h' infolen='230'}
<div class="hotbox">
<div class="hotimg">
<div class="hotimgzz"></div>
<img src="[field:litpic/]" alt="[field:fulltitle/]" width="250" height="165"/>
<div class="standpoint">[field:typename/]</div>
<a class="zzsz" href="[field:arcurl/]" target="_blank" title="[field:fulltitle/]"></a>
</div>
<h3><a href="[field:arcurl/]">[field:title/]</a></h3>
<p>[field:info/]...</p>
<span>阅读:[field:click/]</span><span>[field:pubdate function="MyDate('Y-m-d H:i',@me)"/]</span>
</div>
{/dede:arclist}
</div>
<!--@热门推荐--> 展开
<!--热门推荐-->
<div class="hot">
<div class="com-title"><span><img src="/dedemao/html/images/symbol-6.png" alt="" />热门推荐</span></div>
{dede:arclist row=14 titlelen=60 noflag='h' infolen='230'}
<div class="hotbox">
<div class="hotimg">
<div class="hotimgzz"></div>
<img src="[field:litpic/]" alt="[field:fulltitle/]" width="250" height="165"/>
<div class="standpoint">[field:typename/]</div>
<a class="zzsz" href="[field:arcurl/]" target="_blank" title="[field:fulltitle/]"></a>
</div>
<h3><a href="[field:arcurl/]">[field:title/]</a></h3>
<p>[field:info/]...</p>
<span>阅读:[field:click/]</span><span>[field:pubdate function="MyDate('Y-m-d H:i',@me)"/]</span>
</div>
{/dede:arclist}
</div>
<!--@热门推荐--> 展开
1个回答
展开全部
用flag="p"调用,意思就是只调用带有图片的文章
<!--热门推荐-->
<div class="hot">
<div class="com-title"><span><img src="/dedemao/html/images/symbol-6.png" alt="" />热门推荐</span></div>
{dede:arclist row=14 titlelen=60 flag="p" noflag='h' infolen='230'}
<div class="hotbox">
<div class="hotimg">
<div class="hotimgzz"></div>
<img src="[field:litpic/]" alt="[field:fulltitle/]" width="250" height="165"/>
<div class="standpoint">[field:typename/]</div>
<a class="zzsz" href="[field:arcurl/]" target="_blank" title="[field:fulltitle/]"></a>
</div>
<h3><a href="[field:arcurl/]">[field:title/]</a></h3>
<p>[field:info/]...</p>
<span>阅读:[field:click/]</span><span>[field:pubdate function="MyDate('Y-m-d H:i',@me)"/]</span>
</div>
{/dede:arclist}
</div>
<!--@热门推荐-->
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询