dedecms文章列表怎么显示缩略图
这个是显示在首页的代码如下,怎么让他显示缩略图<DIVclass="w1000centerclear"><DIVclass="newsl"><ULid=myTab0><L...
这个是显示在首页的代码如下,怎么让他显示缩略图
<DIV class="w1000 center clear">
<DIV class="news l">
<UL id=myTab0>
<LI class=on onmouseover=nTabs(this,0);><A
href="{dede:type typeid='14' row=1}[field:typelink /]{/dede:type}" target="_blank">行业新闻</A> </LI>
<LI class=off onmouseover=nTabs(this,1);><A
href="{dede:type typeid='17' row=1}[field:typelink /]{/dede:type}" target="_blank">行业动态</A> </LI>
<LI class=off onmouseover=nTabs(this,2);><A
href="{dede:type typeid='26' row=1}[field:typelink /]{/dede:type}" target="_blank">全网热点</A> </LI></UL>
<DIV class=clear id=myTab0_Content0>
<div class="one clear"> {dede:arclist flag='h'typeid='14' titlelen = '35' limit='0,1' infolen='110' orderby='pubdate' type='image' imgwidth='121' imgheight='75'}
<h2><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h2>
<p>[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a></p>
{/dede:arclist} </div>
<UL class=list>
{dede:arclist row='30' titlelen='35' typeid='14' infolen='150' orderby='pubdate'}
<LI><A title=[field:title/]
href="[field:arcurl/]" target="_blank">[field:title/]</A>
</LI>
{/dede:arclist}</UL></DIV>
<DIV class="clear none" id=myTab0_Content1>
<div class="one clear"> {dede:arclist flag='h'typeid='17' titlelen = '32' limit='0,1' infolen='110'}
<h2><a href="[field:arcurl/]"target="_blank" >[field:title/]</a></h2>
<p>[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a></p>
{/dede:arclist} </div>
<UL class=list>
{dede:arclist row='30' titlelen='35' typeid='17' infolen='150' orderby ='pubdate'}
<LI><A title=[field:title/]
href="[field:arcurl/]" target="_blank">[field:title/]</A>
</LI>
{/dede:arclist}</UL></DIV>
<DIV class="clear none" id=myTab0_Content2>
<div class="one clear"> {dede:arclist flag='h'typeid='26' titlelen = '35' limit='0,1' infolen='110'}
<h2><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h2>
<p>[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a></p>
{/dede:arclist} </div>
<UL class=list>
{dede:arclist row='30' titlelen='35' typeid='26' infolen='150' orderby ='pubdate'}
<LI><A title=[field:title/]
href="[field:arcurl/]" target="_blank">[field:title/]</A>
</LI>
{/dede:arclist}</UL></DIV></DIV> 展开
<DIV class="w1000 center clear">
<DIV class="news l">
<UL id=myTab0>
<LI class=on onmouseover=nTabs(this,0);><A
href="{dede:type typeid='14' row=1}[field:typelink /]{/dede:type}" target="_blank">行业新闻</A> </LI>
<LI class=off onmouseover=nTabs(this,1);><A
href="{dede:type typeid='17' row=1}[field:typelink /]{/dede:type}" target="_blank">行业动态</A> </LI>
<LI class=off onmouseover=nTabs(this,2);><A
href="{dede:type typeid='26' row=1}[field:typelink /]{/dede:type}" target="_blank">全网热点</A> </LI></UL>
<DIV class=clear id=myTab0_Content0>
<div class="one clear"> {dede:arclist flag='h'typeid='14' titlelen = '35' limit='0,1' infolen='110' orderby='pubdate' type='image' imgwidth='121' imgheight='75'}
<h2><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h2>
<p>[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a></p>
{/dede:arclist} </div>
<UL class=list>
{dede:arclist row='30' titlelen='35' typeid='14' infolen='150' orderby='pubdate'}
<LI><A title=[field:title/]
href="[field:arcurl/]" target="_blank">[field:title/]</A>
</LI>
{/dede:arclist}</UL></DIV>
<DIV class="clear none" id=myTab0_Content1>
<div class="one clear"> {dede:arclist flag='h'typeid='17' titlelen = '32' limit='0,1' infolen='110'}
<h2><a href="[field:arcurl/]"target="_blank" >[field:title/]</a></h2>
<p>[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a></p>
{/dede:arclist} </div>
<UL class=list>
{dede:arclist row='30' titlelen='35' typeid='17' infolen='150' orderby ='pubdate'}
<LI><A title=[field:title/]
href="[field:arcurl/]" target="_blank">[field:title/]</A>
</LI>
{/dede:arclist}</UL></DIV>
<DIV class="clear none" id=myTab0_Content2>
<div class="one clear"> {dede:arclist flag='h'typeid='26' titlelen = '35' limit='0,1' infolen='110'}
<h2><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h2>
<p>[field:info/]...<a href="[field:arcurl/]" target="_blank">[查看全文]</a></p>
{/dede:arclist} </div>
<UL class=list>
{dede:arclist row='30' titlelen='35' typeid='26' infolen='150' orderby ='pubdate'}
<LI><A title=[field:title/]
href="[field:arcurl/]" target="_blank">[field:title/]</A>
</LI>
{/dede:arclist}</UL></DIV></DIV> 展开
展开全部
你现在查看一下 数据库到底有没有 缩略图 , 数据表名 dede_archives 再找到这么字段名
litpic 这个就是缩略图 , 按你上面写的 , 你直接[field:litpic/],就能调用出缩略图,但是首先你得有这个缩略图。
litpic 这个就是缩略图 , 按你上面写的 , 你直接[field:litpic/],就能调用出缩略图,但是首先你得有这个缩略图。
追问
dede_archives 没找到有这个,怎么办?[field:litpic/]这个写在哪啊
追答
dede_archives 这个是数据库中的一张表,[field:litpic/] 是字段名等于 echo $litpicd 的衣服,
这样就调用出来了 图片了,这个 [field:litpic/] 只说调用出 图片的路径,但是你首先你得知道你项目文件里面得有这张图片。
博思aippt
2024-07-20 广告
2024-07-20 广告
作为深圳市博思云创科技有限公司的工作人员,对于Word文档生成PPT的操作,我们有以下建议:1. 使用另存为功能:在Word中编辑完文档后,点击文件->另存为,选择PowerPoint演示文稿(*.pptx)格式,即可将文档内容转换为PPT...
点击进入详情页
本回答由博思aippt提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询