演示链接:查看演示

dedecms高级搜索结果页advancedsearch.htm如何调用channel标签

模版中调用:

<?php pasterTempletDiy("default/head.htm");?>
 

和底部

<?php pasterTempletDiy("default/footer.htm");?>
 

/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(); 

}
 

就可以调用出来栏目了
 

THE END
喜欢就支持一下吧
点赞0 分享