摘要:dede首页调用顶级栏目单页内容(如:关于我们)_seo网络营销培训机构_1.调用内容方法,调用描述同理:dede:channeltype=toprow=1[field:arrayrunphp=yes]global$dsql@me=@me[id]$sql
dede首页调用顶级栏目单页内容(如:关于我们)_seo网络营销培训机构_1.调用内容方法,调用描述同理: dede:channel type=top row=1 [field:array runphp=yes] global $dsql @me = @me[id] $sql = select from arctyp e where id=1 /顶级栏目id $dsql-Execute(a,$sql) $one = $dsql-GetArray(a) @me
1.调用内容方法,调用描述同理:
{dede:channel type="top" row=1}
[field:array runphp='yes']
global $dsql;
@me =@me['id'];
$sql = "select * from arctype where id=1"; /*顶级栏目id
$dsql->Execute('a',$sql);
$one = $dsql->GetArray('a');
@me =substr(Html2Text($one['content']),0,800);
[/field:array]...
{/dede:channel}
2.后台关于我们是一级栏目,设置为频道封面,
3.效果如下图所示:
本文内容主要是有关于::dede首页调用顶级栏目单页内容(如:关于我们)和[seo网络营销培训机构]
如果您有想法通过seo排名。来获得精准流量。请添加客服咨询我们。专业的团队+AI智能让您没有后顾之忧。