DEDECMS5.7讓留言板調用{dede:include filena,織夢技術
導讀:織夢技術織夢技術DEDECMS5.7讓留言板調用{dede:include filename=head.htm/}的方法: 首先找到include/common.func.ph織夢手機模板手機模板dede。
DEDECMS5.7讓留言板調用{dede:include filename="head.htm"/}的方法:
首先找到include/common.func.php這個文件,
然后加這個文件最后面,?>這個前面加上:
function pasterTempletDiy($path) { require_once(DEDEINC."/arc.partview.class.php"); global $cfg_basedir,$cfg_templets_dir; $tmpfile = $cfg_basedir.$cfg_templets_dir."/".$path;//模版文件的路徑 $dtp = new PartView(); $dtp->SetTemplet($tmpfile); $dtp->Display(); } function pasterTempletDiy2($path) { require_once(DEDEINC."/arc.partview.class.php"); global $cfg_basedir,$cfg_templets_dir; $tmpfile = $cfg_basedir.$cdede模板免費fg_templets_dir."/&quo織夢模板安裝t;.$path;//模版文件的路徑 $dtp = new PartView(); $dtp->SetTemplet($tmpfile); $temstr = $dtp->GetResult(); return $temstr; }
然后在留言板文件中templets/plus/guestbook.htm
加入如下代碼即可引dede網站模板入導航欄。
<?php pasterTempletDiy("default/head.htm"); ?>
相關織夢手機模板手機模板dede。
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-22 ,文章DEDECMS5.7讓留言板調用{dede:include filena,織夢技術主要講述留言板,標簽,CMS網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_34589.html