免费一级码无码婬片AA,多姿,国产成人精品日本亚洲18图 ,亚洲欧美视频一区,久久久久国产精品一区

做網站找實速,專業網站制作設計平臺
首頁 > 課堂 > 網站技術 > 詳情
網站標簽 / Tags

帝國cms讀取遠程頁面 (readhttp) 和 引用文件標簽 (includefile)

2020-02-16 15:36:14   來源:實速網絡|網站建設|網站設計|網站優化|網站仿制|網站SEO|網站推廣|空間域名|主機VPS|服務器|網站源碼|網站模版   瀏覽: 次
帝國cms讀取遠程頁面 (readhttp) 和 引用文件標簽 (includefile) 發布時間:2019-12-20 來源:未知 瀏覽: 關鍵詞:帝國CMS 讀取遠程頁面 readhttp 引用文件標簽 includefile

帝國cms讀取遠程頁面 (readhttp) 和 引用文件標簽 (includefile)

發布時間:2019-12-20 來源:未知 瀏覽: 關鍵詞:帝國CMS 讀取遠程頁面 readhttp 引用文件標簽 includefile 

1、開啟標簽 后臺--模板--標簽--標簽管理--修改(選擇對應標簽)--開啟

2、讀取遠程頁面 (readhttp) [readhttp]'http://127.0.0.1/bbs//incfile/head.html'[/readhttp] 可以是本站的但是要寫絕對路徑

引用文件標簽 (includefile)

include自定義頁面方法:(自定義頁面在后臺>"欄目">"自定義頁面"里增加)

include 自定義頁面有兩種方法(userpage.html在根目錄):

第一種:頁面生成.html文件情況下,

模板用<?php include(ECMS_PATH.'userpage.html');?>

或 [includefile]'../../page1.html"'[/includefile]

或 <?php require(ECMS_PATH.'userpage.html');?>

調用文件。

第二種:頁面生成.shtml文件,用<!--#include file="/userpage.html"-->調用文件。

技巧說明:

1、自定義頁面存放目錄說明:

<?php include(ECMS_PATH.'userpage.html');?>與<!--#include file="/userpage.html"-->

上面例子是以自定義頁面生成到根目錄為例,你也可以單獨建個自定義頁面存放目錄,比如:/incpage/ 目錄那模板include就是用:

<?php include(ECMS_PATH.'/incpage/userpage.html');?>與<!--#include file="/incpage/userpage.html"-->

2、自定義頁面可以設置定義生成,以讓文件內容實時更新:

在后臺>"系統">"計劃任務">"管理刷新任務"里增加定時刷新自定義頁面。

3、如果是不同欄目不同自定義頁面如何引用?

(1)、增加自定義頁面按欄目ID命名,比如:/incpage/userpage1.html (其中1為欄目ID)

(2)、模板中include文件用:

<?php include(ECMS_PATH.'/incpage/userpage'.$GLOBALS[navclassid].'.html');?>

<?php require(ECMS_PATH.'/incpage/userpage'.$GLOBALS[navclassid].'.html');?>

<!--#include file="/incpage/userpage<?=$GLOBALS[navclassid]?>.html"-->
責任編輯:實速科技