if(!function_exists('GetArcUrl')) { function GetArcUrl($id) { global $dsql; $arcRow = $dsql->GetOne("SELECT * FROM dede_archives WHERE `id` = '{$id}'"); $typeRow = $dsql->GetOne("SELECT * FROM dede_arctype WHERE `id` = '{$arcRow['typeid']}'"); $arcurl = GetFileUrl($id,$arcRow['typeid'],$arcRow['senddate'],$arcRow['title'],$arcRow['ismake'], $arcRow['arcrank'],$typeRow['namerule'],$typeRow['typedir'] ,$arcRow['money'],$arcRow['filename'],$typeRow['moresite'],$typeRow['siteurl'], $typeRow['sitepath']); return $arcurl; } }
然后在内容页通过{dede:field.id function="GetArcUrl(@me)"/}进行调用
版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!
转载请注明: 织梦cms内容页如何调用当前页面url地址