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)"/}進行調用
版權聲明: 本站資源均來自互聯網或會員發(fā)布,如果侵犯了您的權益請與我們聯系,我們將在24小時內刪除!謝謝!
轉載請注明: 織夢cms內容頁如何調用當前頁面url地址