帝國CMS搜索頁面模板不支持靈動標(biāo)簽和萬能標(biāo)簽的方法

admin 建站教程評論817字?jǐn)?shù) 598閱讀模式
摘要

帝國CMS7.0至搜索模板始終不支持動態(tài)標(biāo)簽調(diào)用,這很不方便,即便是升級到7.5,仍然不支持。使搜索頁支持靈動標(biāo)簽的方法很簡單

教程如下:
打開 /e/search/result/index.php 文件

  1. 查找:
  2. require("../../class/connect.php");
  3. require("../../class/db_sql.php");
  4. require("../../data/dbcache/class.php");
  5. require("../../class/q_functions.php");
  6. require?"../".LoadLang("pub/fun.php");
  1. 修改成:
  2. require('../../class/connect.php');
  3. require('../../class/db_sql.php');
  4. require('../../class/functions.php');
  5. require('../../class/t_functions.php');
  6. require('../../data/dbcache/class.php');
  7. require?"../".LoadLang("pub/fun.php");

接著查找:文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/7663.html

  1. //替換公共模板變量
  2. $listtemp=$tempr[temptext];

在上面添加以下代碼:文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/7663.html

  1. //頁面支持標(biāo)簽
  2. $tempr[temptext]=DtNewsBq('list'.$tempid,$tempr[temptext],0);

就可以了!文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/7663.html

更多相關(guān)文章

帝國CMS靈動標(biāo)簽調(diào)用日期時間文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/7663.html 文章源自網(wǎng)吧系統(tǒng)維護(hù)-http://www.strong-digital.cn/7663.html

版權(quán)聲明:文章圖片資源來源于網(wǎng)絡(luò),如有侵權(quán),請留言刪除!!!
廣告也精彩
admin
  • 本文由 發(fā)表于 2021年9月25日 17:05:31
  • 轉(zhuǎn)載請務(wù)必保留本文鏈接:http://www.strong-digital.cn/7663.html
匿名

發(fā)表評論

匿名網(wǎng)友 填寫信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: