【mate】头部信息调取
<title>{dede:field.title/}_{dede:global.cfg_webname/}</title> //调取标题信息
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>{dede:global.cfg_webname/}</title> //首页title
<meta name="keywords" content="{dede:field name='keywords'/}" />
<meta name="description" content="{dede:field name='description' function='html2text(@me)'/}" />
<h2>{dede:field.seotitle /}</h2> //调取seo标题
<meta name="viewport" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
一、banner图、新闻轮播图、专题、滚动图标签调取方法
1、幻灯片管理( 新织梦后台)
<ul>
{dede:myppt typeid='3' row='10'}
<li>
<a href="[field:url/]" title="[field:title/]" target="_blank">
<img src="[field:pic/]">
</a>
</li>
{/dede:myppt}
</ul>
2、调取指定栏目的图片(多用于老织梦后台)
2.1、栏目图片:图片地址src
2.2、栏目属性:外部连接(在"文件保存目录"处填写网址)
{dede:channelartlist typeid='8,0'}
<div class="zhuanti">
<ul>
{dede:channel type='son' noself='yes'}
<li class="item">
<a href="[field:typedir/]" title="[field:typename/]">
<img src="[field:typeimg/]"> // [field:typebigpic /]
<span" class="titile">[field:typename/]</span>
</a>
</li>
{/dede:channel}
</ul>
</div>
{/dede:channelartlist}
3、新闻轮播图(文章形式)
<div class="box">
<div class="bd">
{dede:channelartlist typeid='3,0'}
<ul>
{dede:arclist titlelen='40' row='4' flag='p'}
<li>
<a href="[field:arcurl/]" target="_blank">
<h2>[field:title /]</h2>
<img src="[field:litpic/]" alt="[field:title /]">
</a>
</li>
{/dede:arclist}
</ul>
{/dede:channelartlist}
</div>
<div class="hd">
<ul>
<li>1</li>
<li>2</li>
</ul>
</div>
</div>
二、导航条栏目标签调取
1、一级栏目调取
<ul>
<li>
<a href="/">首页</a>
</li>
{dede:channelartlist typeid='top' currentstyle='active' row='5'}
<li>
<a href="{dede:field name='typeurl'/}" title="{dede:field name='typename'/}">{dede:field name='typename'/}</a>
</li>
{/dede:channelartlist}
</ul>
2、 一、二级栏目调取(current 当前页面的样式)
<ul class="nav">
<li {dede:field name=typeid runphp="yes"}(@me=="")? @me="class='yiji current' ":@me="class='yiji'";{/dede:field}>
<a href="/">网站首页</a>
</li>
{dede:channelartlist typeid='top' currentstyle='current' row='6'} //一级栏目调取
<li>
<a href="{dede:field name='typeurl'/}" class="yiji {dede:field.currentstyle/}">{dede:field name='typename'/}</a>
<div class="son">