首页dede:arclist标签调用写法
{dede:arclist typeid='7' row='10' titlelen='50' channelid='3' addfields='daccess'}
源码权限:
[field:daccess runphp=yes]global $dsql;$row = $dsql->GetOne("SELECT `membername` FROM `dede_arcrank` WHERE [email protected]");@me = ($row['membername']=='0') ? "不限会员" : $row['membername'];[/field:daccess]
{/dede:arclist}
列表页dede:list标签调用写法
首先要把daccess字段添加到内容模型-附加列表字段内
然后在dede:list里这样调用
{dede:list pagesize='10'}
源码权限:
[field:daccess runphp=yes]global $dsql;$row = $dsql->GetOne("SELECT `membername` FROM `dede_arcrank` WHERE [email protected]");@me = ($row['membername']=='0') ? "不限会员" : $row['membername'];[/field:daccess]
{/dede:list}
内容页模板调用标签调用写法
源码权限:
{dede:field.daccess runphp=yes}global $dsql;$row = $dsql->GetOne("SELECT `membername` FROM `dede_arcrank` WHERE [email protected]");@me = ($row['membername']=='0') ? "不限会员" : $row['membername'];{/dede:field.daccess}