dede搜索页面不能使用arclist等标签解决办法 – De


avatar
pcwnas 2023-04-21 171

原文来自:https://www.zixuephp.com

dede搜索页面不能使用arclist等标签解决办法

dede模板搜索页search.php支持arclist和channelartlist标签调用

打开include/arc.searchview.class.php.

  1. //查找:
  2. require_once(DEDEINC.”/taglib/hotwords.lib.php”);
  3. require_once(DEDEINC.”/taglib/channel.lib.php”);
  4. //下面插入
  5. require_once(DEDEINC.”/taglib/arclist.lib.php”);
  6. require_once(DEDEINC.”/taglib/channelartlist.lib.php”);
  7. //phpfensi.com
  8. //查找
  9. elseif($tagname==”hotwords”)
  10. {
  11. $this->dtp->Assign($tagid,lib_hotwords($ctag,$this));
  12. }
  13. //下面插入
  14. elseif($tagname==”arclist”)
  15. {
  16. $this->dtp->Assign($tagid,lib_arclist($ctag,$this));
  17. }
  18. elseif($tagname==”channelartlist”)
  19. {
  20. $this->dtp->Assign($tagid,lib_channelartlist($ctag,$this));
  21. }