SEO人员经验分享:dede织梦标签大全
空格符号:
qq链接:https://wpa.qq.com/msgrd?v=3&uin=1937655878&site=qq&menu=yes
{style}/index_article.htm
{style}/list_article.htm
{style}/article_article.htm
{dede:global.cfg_zhuquyu/}
织梦调用网址:{dede:global.cfg_basehost/}
织梦首页调用栏目子栏目:
{dede:channel type='son' typeid ='3' row ='4'}
<a href="[field:typelink/]" >[field:typename/]</a>
{/dede:channel}
相关搜索,热门关键词:
<ul>
<li>{dede:likewords num='8'/}</li>
</ul>
内容页标题:
<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)'/}" />
首页标题:
<title>{dede:global.cfg_webname/}</title>
<meta name="description" content="{dede:global.cfg_description/}" />
<meta name="keywords" content="{dede:global.cfg_keywords/}" />
首页调用文章:
{dede:arclist typeid=2 row=12 titlelen=132 orderby='pubdate' }
<li><a href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
热点内容:
{dede:arclist row=10 orderby=click}
<li><a href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
推荐内容:
{dede:arclist flag='c' titlelen=142 row=6}
<li><a href="[field:arcurl/]">[field:title/]</a>
<p>[field:description function='cn_substr(@me,80)'/]...</p>
</li>{/dede:arclist}
相关文章调用:
{dede:likearticle row=13 titlelen=134 typeid=1 }
<li><a title="[field:fulltitle/]" href="[field:arcurl /]">[field:title /]</a></li>
{/dede:likearticle}
首页调用公司简介
{dede:sql sql='Select content,substring(content,1,300) as content from dede_arctype where id=1'}[field:content function='html2text(@me)'/]{/dede:sql}
友情链接:
{dede:flink type='textall' row='24'} [field:link /] {/dede:flink}
手机端显示:
<style>
@media screen and (max-width: 678px) {.online_consu{display:none;}
}
</style>
日期格式:文章页
{dede:field name='pubdate' function='GetDateMk(@me)'/}
日期格式:列表页
[field:pubdate function="GetDateMK(@me)"/]
首页调用tag标签
{dede:tag row='10' sort='new'} <a href='[field:link/]'>[field:tag /]</a>{/dede:tag}
文章调用tag标签:
{dede:tag table='dede_search_keywords' sort='keyword' row='3' if=''}
<a class=blue href='[field:link/]' target=_blank>[field:tag /]</a>
{/dede:tag}
列表页调用tag标签:
热搜词:[field:id function=GetTags(@me)/]
列表页翻页
{dede:pagelist listitem="info,index,end,pre,next,pageno,option" listsize="5"/}
列表页调用子栏目:
{dede:channel row='10' type='son' }
<a href="[field:typelink/]">[field:typename/]</a>
{/dede:channel}
列表页热门资讯:
{dede:arclist row='8' titlelen='60' orderby='hot' subday='30'}
<li > <a href="[field:arcurl/]">[field:title/]</a></li>
{/dede:arclist}
列表页调用文章:
{dede:list pagesize='12' titlelen='150' orderby='pubdate' } orderby='click' infolen='250' imgwidth='缩略图宽' imgheight='缩略图高'
<a href="[file:arcurl /]">[file:title /]</a>
{/dede:list}
返回列表页
{dede:type typeid='0' row=1}[field:typelink /]{/dede:type}
列表页:点击
<small>日期:</small>[field:stime/]
<small>点击:</small>[field:click/]
内容页关键词带链接:
{dede:field name='keywords' runphp='yes' }
if(!empty(@me))
{$kws = explode(',',@me); @me = ""; foreach($kws as $k) { @me .= "<a href='/plus/search.php?keyword=".urlencode($k)."' target=_blank >$k></a> ";} @me= str_replace(' ', ' ',trim(@me)); }
{/dede:field}
内容页调用栏目页名称带链接:
{dede:type} <a href="[field:typelink/]">[field:typename/]</a>{/dede:type}
{dede:type}[field:typename/]{/dede:type}
内容页调用文章链接+标题
<a href="{dede:field name='arcurl'/}">{dede:field.title/}</a>
内容页----分类
分类:</small><a href="[field:typeurl/]" target="_blank">[field:typename/]</a>
内容页----点击,日期
浏览次数:{dede:field.click/}
<small>日期:</small>{field:pubdate function="GetDateTimeMK(@me)"/}
最新标签
{dede:tag row='60' sort='new'}
<a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a>
{/dede:tag}
当月热门标签
{dede:tag row='60' sort='month'}
<a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a>
{/dede:tag}
随机标签
{dede:tag row='100' sort='rand'}
<a href='[field:link/]' class='tagc[field:highlight /]'>[field:tag /]</a>
{/dede:tag}
手机端首页栏目调用
{dede:channel type='top' row='10'}
<a href="list.php?tid=[field:id/]">[field:typename/]</a>
{/dede:channel}
手机端图文资讯:
{dede:arclist row=10 orderby=pubdate type='image.' imgwidth='150' imgheight='150'}
<a href="view.php?aid=[field:id/]">[field:image/]</a>
<a href="view.php?aid=[field:id/]">[field:title/]</a>
[field:description/]
{/dede:arclist}
手机端首页文章调用:
{dede:arclist titlelen='60' row='8'}
<a href="view.php?aid=[field:id/]">[field:title /]</a>
{/dede:arclist}
<a href="list.php?tid={dede:field name='id'/}"><h2>{dede:field name='typename'/}</h2></a>