织梦首页文章内容调用(织梦首页文章调用方法有几种)
各位老铁们,大家好,今天由我来为大家分享织梦首页文章内容调用,以及织梦首页文章调用方法有几种的相关问题知识,希望对大家有所帮助。如果可以帮助到大家,还望关注收藏下本站,您的支持是我们最大的动力,谢谢大家了哈,下面我们开始吧!
织梦里面列表页调用文章内容怎么调用
首先这个标签的调用意思是调用文章内容中带flag=“h”属性的文章,就是说调用的是头条文章;另外一个属性limit是限制的意思,意思表示从第1个flag=“h”的文章开始调用一篇,如果有多篇带有flag="h"的文章,调用最新的一篇。
其次,虽然你在后台写了这个标签,但是你没有在文章中把这个属性勾选上,一样是调用不出来的,要记得勾选上对应属性,同时做完后保存更新网站
最后如果前台还是没有调用出,在页面上点击CTRL+F5强制刷新
希望对你有帮助,记得点赞哦,哈哈~~~
织梦怎么调用文章页标题、关键字、描述,是文章页的。
你需要的标签:<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}"/>
<meta name="description" content="{dede:field.description function='html2text(@me)'/}"/>
另附:
DEDE全站通用标签:
根网址:
{dede:global.cfg_cmsurl/}/style/
标签里面的根网址:
[field:global.cfg_cmsurl/]
网站域名:
{dede:global.cfg_basehost/}
模板路径:
{dede:global.cfg_templets_skin/}
<title>{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}"/>
<meta name="keywords" content="{dede:global.cfg_keywords/}"/>
频道页标题、关键字:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field name='keywords'/}"/>
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}"/>
摘要:
[field:description function='cn_substr(@me,110)'/]
日期:
[field:pubdate function=MyDate('m-d',@me)/]
[field:pubdate function=MyDate('20y-m-d',@me)/]
点击:[field:click/]
调用其他模板文件
{dede:include filename="head.htm"/}
当前位置:
{dede:field name='position'/}
seo标题
{dede:field.seotitle/}
文章ID:
[field:id/]
排序:
{dede:arclist row=5 orderby=pubdate titlelen=18}
[field:autoindex runphp='yes']@me=$GLOBALS['autoindex']-1;[/field:autoindex]
{/dede:arclist}
文章
[field:title/]
文章链接地址:
[field:arcurl/]
简略
[field:shorttitle/]
文章列表:
{dede:arclist typeid='' row='1' titlelen='24' orderby='pubdate'}
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title/]</a>
<li><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
文章显示:
<li><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" title="[field:title/]" target="_blank">[field:title/]</a></li>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" title="[field:title/]">[field:title/]</a>
图片调用:
{dede:arclist row='1' typeid='' titlelen='24' orderby='pubdate' type='image.'}
[field:picname/]
{/dede:arclist}
{dede:field.litpic/}
商品文章页:
dede图片调用标签:
<img src={dede:field.litpic/}>
{dede:field.litpic/}
[field:imglink/]=<a href='[field:arcurl/]'><img src='[field:picname/]' border='0' width='imgwidth' height='imgheight'></a>
DEDE-列表/栏目页标签:
栏目内容:
{dede:field.content/}
调用分类信息:
{dede:arclist row=5 orderby=pubdate typeid='37.' imgwidth='124' imgheight='96'}
{dede:arclistsg orderby=’id’ titlelen=’24′ row=’10′ channelid=’-8′ typeid=’1,2′}
{/dede:arclistsg}
栏目列表页list标签:
{dede:list pagesize='10'}
<li>
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]" class="title">[field:title/]</a><span class="info">
<p class="intro">
[field:description/]...
</p>
</li>
{/dede:list}
列表分页/页码:
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
主目录:
<ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>主页</span></a></li>
{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~'~rel~><span>~typename~</span></a></li>"}
<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>
{/dede:channel}
</ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>主页</span></a></li>
{dede:channel type='top' row='10'}
<li><a href='[field:typeurl/]'><span>[field:typename/]</span></a></li><li class="line"></li>
{/dede:channel}
栏目,目录调用
<ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>主页</span></a></li>
{dede:channel type='top' row='10' currentstyle="<li class='hover'><a href='~typelink~'~rel~><span>~typename~</span></a></li>"}
<li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li>
{/dede:channel}
</ul>
<UL>
{dede:channel typeid=39 type='son' noself='yes'}
<LI><a rel="external nofollow" rel="external nofollow" href="[field:typeurl/]">[field:typename/]</a></LI>
{/dede:channel}
</UL>
[field:typelink/]
带标题的二级目录链接
<a rel="external nofollow" rel="external nofollow" href="[field:typeurl/]" title='[field:typename/]'>[field:typename/]</a>
{dede:ask row='6' qtype='new' tid='0' titlelen='24'}
<dd>
<span class="tclass">[<a href='[field:typeurl/]'>[field:tidname/]</a>]</span>
<span class="tlink"><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]">[field:title/]</a></span>
</dd>
{/dede:ask}
频道头条:
{dede:arclist flag='h' limit='0,1'}
问答模块标签
{dede:ask row='3' qtype='ok' tid='0' titlelen='26'}
<li>
[<a href='[field:typeurl/]'>[field:tidname/]</a>]
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]">[field:title/]</a>
</li>
{/dede:ask}
DEDE-文章页标签:
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title>
<meta name="keywords" content="{dede:field.keywords/}"/>
<meta name="description" content="{dede:field.description function='html2text(@me)'/}"/>
文章正文标题
{dede:field.title/}
时间:
{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}
来源:
{dede:field.source/}
作者:
{dede:field.writer/}
点击:
<script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:fieldname='mid'/}" type='text/javascript' language="javascript"></script>
摘要:
{dede:field.description runphp='yes'}
if(@me<>'')@me='<div class="intro">'.@me.'</div>';
{/dede:field.description}
文章正文内容:
{dede:field.body/}
{dede:field name='title'/}
文章商品图片:
{dede:field.litpic/}
{dede:field.litpic/}
商品内页:
<small>商品原价:</small><span>{dede:field.price/}元</span>
<small>优惠价格:</small><span class="fc-f60">{dede:field.trueprice/}元</span>
<small>品牌:</small><span>{dede:field.brand/}</span>
<small>单位:</small><span>{dede:field.units/}</span>
<small>上架日期:</small><span>{dede:field.pubdate function="MyDate('y-m-d H:i',@me)"/}</span>
<small>人气:</small><span><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}" type='text/javascript' language="javascript"></script></span>
<form id="formcar" name="formcar" method="post" action="{dede:field name='phpurl'/}/posttocar.php">
<input type="hidden" name="id" value="{dede:field.id/}"/>
<input type="hidden" name="title" value="{dede:field.title/}"/>
<input type="hidden" name="price" value="{dede:field.trueprice/}"/>
<input type="hidden" name="units" value="{dede:field.units/}"/>
<small>购物车:</small><span><a rel="external nofollow" href="{dede:field name='phpurl'/}/car.php" target="_blank">查看购物车</a></span>
<small>购买:</small><span><button type="submit" name="button" class="btn-2">放入购物车</button></span>
DEDE-频道页标记:
{dede:channelartlist}
<dl class="tbox">
<dt><strong><a rel="external nofollow" rel="external nofollow" href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></strong><span class="more"><a rel="external nofollow" rel="external nofollow" href="{dede:field name='typeurl'/}">更多...</a></span></dt>
<dd>
<ul class="d1 ico3">
{dede:arclist titlelen='60' row='8'}
<li><span class="date">[field:pubdate function="MyDate('m-d',@me)"/]</span><a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
</ul>
</dd>
</dl>
{/dede:channelartlist}
上一篇下一篇
{dede:prenext get='pre'/}
{dede:prenext get='next'/}
新增字段:
{dede:arclist typeid='45' row='8' imgwidth='105' imgheight='105' titlelen='16' addfields='trueprice,price' channelid='6'}
市场价¥[field:price/]
优惠价¥[field:trueprice/]
{/dede:arclist}
DEDE-其他标签:
备案:
{dede:global.cfg_beian/}
版权:
{dede:global.cfg_powerby/}
友情链接:自带li标记
{dede:flink row='24'/}
去掉li标签:
{dede:flink linktype='2' row='24'}[field:link/]{/dede:flink}
{dede:flink linktype='2' row='24' typeid="1"}[field:link/]|{/dede:flink}
A标签的友情链接:
{dede:flink type='textall' row='10'}
<a rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]" target=_blank class="font-size3 color4">[field:webname/]</a>
{/dede:flink}
SQL代码
直接从数据库调用友情链接{dede:sql sql="Select* From dede_flink where logo='' order by id desc"}<a target="_blank" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" href="[field:url/]" title="[field:webname/]">[field:webname/]</a>{/dede:sql}
dede标签调用:
{dede:tag row='10' getall='1' sort='month'}
<li><a href='[field:link/]'>[field:tag/]</a></li>
{/dede:tag}
栏目链接标签:
<a rel="external nofollow" href="{dede:type typeid='0' row=1}[field:typelink/]{/dede:type}">查看本类全部内容</a>
指定调用栏目标签:{dede:onetype typeid='ID'}[field:typename/]{/dede:onetype}
频道栏目调用标签:
{dede:channel type='self' typeid='7'}<li><a href='[field:typelink/]'>[field:typename/]</a></li>
{/dede:channel}
{dede:channel type='self' typeid='7' row='1'}<a href='[field:typelink/]'>[field:typename/]</a>{/dede:channel}
调用一个栏目:
{dede:type typeid='8'}
<a rel="external nofollow" href="[field:typelink/]">[field:typename/]</a>
{/dede:type}
限制行数标签:
{dede:arclist typeid='' row='2' limit='0,1' titlelen='24' orderby='pubdate'}
去掉标题的幻灯片代码:
<!-----幻灯片------->
<script language='javascript'>
linkarr= new Array();
picarr= new Array();
textarr= new Array();
var swf_width=546;
var swf_height=126;
//文字颜色|文字位置|文字背景颜色|文字背景透明度|按键文字颜色|按键默认颜色|按键当前颜色|自动播放时间|图片过渡效果|是否显示按钮|打开方式
var configtg='0xffffff||0x3FA61F|5|0xffffff|0xC5DDBC|0x000033|4|3|1|_blank';
var files="";
var links="";
var texts="";
//这里设置调用标记
{dede:arclist flag='f' row='5'}
linkarr[[field:global.autoindex/]]="[field:arcurl/]";
picarr[[field:global.autoindex/]]="[field:litpic/]";
{/dede:arclist}
for(i=1;i<picarr.length;i++){
if(files=="") files= picarr[i];
else files+="|"+picarr[i];
}
for(i=1;i<linkarr.length;i++){
if(links=="") links= linkarr[i];
else links+="|"+linkarr[i];
}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="" width="'+ swf_width+'" height="'+ swf_height+'">');
document.write('<param name="movie" value="{dede:global.cfg_cmsurl/}/style/images/bcastr3.swf"><param name="quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&bcastr_config='+configtg+'">');
document.write('<embed src="{dede:global.cfg_cmsurl/}/style/images/bcastr3.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_config='+configtg+'&menu="false" quality="high" width="'+ swf_width+'" height="'+ swf_height+'" type="application/x-shockwave-flash" pluginspage=""/>'); document.write('</object>');
</script>
<!-----幻灯片------->
文章原文地址:
<a rel="external nofollow" href="{dede:global.cfg_basehost/}{dede:field name='arcurl'/}">{dede:global.cfg_basehost/}{dede:field name='arcurl'/}</a>
注:以上内容由Braineo总结编辑并提供。
织梦文章怎么调用栏目设定的标题
1、打开dedecms织梦管理后台,用管理员账户密码登陆。
2、点击【核心】----【网站栏目管理】-----选择一个栏目后面的,点击【更改】。
3、【常规选项】【高级选项】【栏目内容】中选择{高级选项},填写栏目的SEO标题,复制代码【{dede:field.seotitle/}】并记住栏目模板的名称【list_article.htm】,点击下面的确定保存。
4、点击【模板】【默认模板管理】找到模板文件名【list_article.htm】,点击模板后面的修改,弹出修改模板代码页面。
5、打开【list_article.htm】代码页面,找到<title>标题,将{dede:field.title/}修改为
{dede:field.seotitle/},点击保存。
6、dedecms织梦程序默认是生成静态的html页面的,所以还需要作最后一步的更新栏目HTML文档才可以预览的。依次点击【生成】-------【更新栏目HTML】------【更新所有】----------【生成HTML】点开栏目的页面,就可以看到已经改好的标题了。
如果你还想了解更多这方面的信息,记得收藏关注本站。