织梦调用代码大全

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

【幻灯片调用】{dede:myppttypeid='1'row='3'}linkarr[[field:global.autoindex/]]=[field:url/];picarr[[field:global.autoindex/]]=[field:pic/];textarr[[field:global.autoindex/]]=[field:titlefunction='html2text(@me)'/];{/dede:myppt}【导航调用,头部栏目调用】liahref='{dede:global.cfg_cmsurl/}/'rel=nofollow网站首页/a/li{dede:channeltype='top'row='10'}liahref='[field:typeurl/]'[field:rel/][field:typename/]/a/li{/dede:channel}【网站标题,关键字和描述】首页title{dede:global.cfg_webname/}/titlemetaname=keywordscontent={dede:global.cfg_keywords/}/metaname=descriptioncontent={dede:global.cfg_description/}/列表页title{dede:field.seotitle/}_{dede:global.cfg_webname/}/titlemetaname=Keywordscontent={dede:fieldname=keywords/}/metaname=descriptioncontent={dede:fieldname=description/}/文章title{dede:field.title/}_{dede:global.cfg_webname/}/titlemetaname=Keywordscontent={dede:fieldname=keywords/}/metaname=descriptioncontent={dede:fieldname=description/}/【首页代码】logo连接首页:{dede:global.cfg_basehost/}/首页新闻中心,资讯中心,公司新闻,信息中心{dede:arclistrow=10typeid=3titlelen=34orderby=pubdate}lispanclass=date[field:pubdatefunction=MyDate('m-d',@me)/]/spanahref=[field:arcurl/]title=[field:title/][field:title/]/a/li{/dede:arclist}首页产品中心,图片展示{dede:arclistrow=10typeid=6type=image.}liahref=[field:arcurl/]title=[field:title/]imgsrc=[field:litpic/]alt=[field:title/]width=100height=146(注:宽、高)/span[field:title/]/span/a/li{/dede:arclist}有图片也有新闻{dede:arclistrow=10typeid=3titlelen=34orderby=pubdate}lispanclass=date[field:pubdatefunction=MyDate('m-d',@me)/]/spanahref=[field:arcurl/]title=[field:title/][field:title/]/aahref=[field:arcurl/]title=[field:title/]imgsrc=[field:litpic/]alt=[field:title/]width=100height=146//a/li{/dede:arclist}有内容摘要的新闻{dede:arclistrow=1infolen='230'typeid=3titlelen=34orderby=pubdate}h2ahref=[field:arcurl/][field:title/]/a/h2p[field:info/]...ahref=[field:arcurl/][查看全文]/a/p{/dede:arclist}【列表调用】当前位置{dede:fieldname='position'/}列表中-新闻调用代码{dede:listpagesize='6'}liahref=[field:arcurl/]title=[field:title/][field:title/]/aspan时间:[field:pubdatefunction=GetDateTimeMK(@me)/]/spanpclass=intro[field:descriptionfunction='cn_substr(@me,200)'/].../p/li{/dede:list}产品列表-图片列表{dede:listpagesize='12'titlelen=26}liahref=[field:arcurl/]title=[field:title/]imgsrc=[field:litpic/]alt=[field:title/]/span[field:title/]/span/aspan时间:[field:pubdatefunction=GetDateTimeMK(@me)/]/span/li{/dede:list}列表新闻,描述调用,文章内容提取[field:descriptionfunction='cn_substr(@me,200)'/]...【列表分页调用divclass=pages{dede:pagelistlistitem=index,end,pre,next,pagenolistsize=5/}/div下面是css代码,添加到自己网站的css里面.pages{clear:both;margin:015px;text-align:center;padding-bottom:10px;width:728px;font-family:宋体;}.pagesli{float:left;margin-right:5px;list-style-type:none;}.pagesa{border:1px#ff0000solid;margin:02px;height:18px;line-height:18px;padding:06px;display:inline-block;background:#f5f5f5;border:1px#dddsolid;text-align:center;}.pagesspan{background:#f5f5f5;border:1px#dddsolid;margin:02px;height:18px;line-height:18px;padding:06px;display:inline-block;}.pagesstrong{border:1px#ff0000solid;margin:02px;height:18px;line-height:18px;padding:06px;display:inline-block;color:#FF0000;font-weight:bold;}】【文章模板】当前位置{dede:fieldname='position'/}文章标题{dede:field.title/}发布时间{dede:field.pubdatefunction=MyDate('Y-m-dH:i',@me)/}文章点击scriptsrc={dede:fieldname='phpurl'/}/count.php?view=yes&aid={dede:fieldname='id'/}&mid={dede:fieldname='mid'/}type='text/javascript'language=javascript/script次文章正文调用{dede:field.body/}上一篇{dede:prenextget='pre'/}下一篇{dede:prenextget='next'/}正文完了调用相关的文章{dede:likearticlerow='10'col='2'titlelen='32'infolen='160'mytypeid=1,2,3,4,5}ahref='[field:arcurl/]'[field:title/]/a{/dede:likearticle}调用推荐的文章{dede:arclistflag='c'limit='2,1'titlelen=56}h2ahref=[field:arcurl/][field:title/]/a/h2{/dede:arclist}【单页面】正文调用{dede:field.content/}【搜索结果调用,搜索结果模板命名search.htm】{dede:listperpage='20'}liahref=[field:arcurl/]target=_blankimgdataid=605957width=220src=[field:litpic/]alt=[field:title/]class=605957height=165//apclass=p1ahref=[field:arcurl/]target=_blank[field:title/]/a/p/li{/dede:list}{dede:pagelistlistsize='21'/}【搜索框调用】formaction=/plus/search.phpmethod=postclass=search-forminputname=keywordclass=input-keywordvalue=搜索您感觉兴趣的…onblur=if(this.value=='')this.value='搜索您感觉兴趣的…';onfocus=if(this.value=='搜索您感觉兴趣的…')this.value='';type=textinputclass=s-btntype=submitvalue='搜索'//form【热门搜索词调用】{dede:hotwordsnum='4'/}【友情链接调用】{dede:flinkrow='24'/}【图片友情链接:】{dede:flinkrow='24'type='image'titlelen=24typeid=0}[field:link/]{/dede:flink}【文字友情链接:】【divclass=flink{dede:flinkrow='24'type='text'titlelen=24typeid=0}li[field:link/]/li{/dede:flink}divstyle=clear:both;/div/div】【divclass=flink{dede:flinkrow='24'type='image'titlelen=24typeid=0}li[field:link/]/li{/dede:flink}divstyle=clear:both;/div/div】【{dede:flinktypetype=dedecms}ddid=flink_[field:id/]ulclass=f5{dede:flink/}/ul/dd{/dede:flinktype}】【有序列

1 / 23
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功