<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

有seotitle的时候显示seotitle没有则显示默认标题

时间:2020-12-15

dedecms栏目标题seo:有seotitle的时候显示seotitle没有则显示默认标题

<title>{dede:field name=’typeid’ runphp=’yes’}
$id=@me;
global $dsql;
$sql=”select * from dedecode_com_arctype where id=$id”;
$row=$dsql->getOne($sql);
$seotitle=$row["seotitle"];
$typename=$row["typename"];
$topid=$row["topid"];
if($seotitle!==”){
@me=$seotitle;

}else{
$sql2=”select * from dedecode_com_arctype where id=$topid”;
$row2=$dsql->getOne($sql2);
$typename2=$row2["typename"];
@me=$typename2.”-”.$typename;
}

{/dede:field}- {dede:global name=’cfg_webname’/}</title>

将以上代码替换默认的标题 就可以了。这样标题更加试用,方便了栏目过多,有一些栏目没有必要单独写SEOtitle。

0
首页
案例
关于
联系