在dedecms的那个留言板guestbook.htm中如何调用head.htm ?
{dede:include filename="head.htm"/} 是不可行的 别添乱 老鸟帮忙解决下  谢谢!

解决方案 »

  1.   

    我这样做也是不行的:在/include/extend.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(); 

    然后在/templets/plus/guestbook.htm 中"<body class="mapspage">"的下面添加
     <?php pasterTempletDiy("default/head.htm"); ?> 
    运行之后啥都没有显示 后台动不了(每次执行都一样 )
      

  2.   

    当我只这样时 
    {dede:include filename="../default/head.htm"/}  能将静态的东西显示出来了  
    但是。。比如说导航中的 “新闻”“联系我们”这样的栏目就解析成了[field:typename/]  也就是说解析不了  汗 汗!!!