「分類:LiteSite」修訂間的差異

出自六年制學程
跳至導覽 跳至搜尋
(新頁面: ===表示法=== *「○○○」使用者姓名 *「□□□□」site的資料夾名稱 *「☆☆☆☆☆」頁名或檔名)
 
 
(未顯示同一使用者於中間所作的 4 次修訂)
第3行: 第3行:
 
*「□□□□」site的資料夾名稱
 
*「□□□□」site的資料夾名稱
 
*「☆☆☆☆☆」頁名或檔名
 
*「☆☆☆☆☆」頁名或檔名
 +
===用 REQUEST_URI 區分五種輸出情況===
 +
#/SITE/index.php/頁名:帶 theme 表內頁
 +
#/SITE/index.php/wikiSite/index.php/頁名:帶 theme wiki頁
 +
#/webContent.php/頁名:跨 theme 表內頁
 +
#/webContent.php/wikiSite/index.php/頁名:跨 theme wiki頁,  ?
 +
#其他實體檔案
 +
/SITE/index.php 和 /webContent.php 內容大致一樣,只是位置不同
 +
 +
確保 theme 中含有 javascript 中的 ajax webContent() 函式,萬一無 theme 時也可載入文件根目錄的 webContent.js

於 2018年6月7日 (四) 22:29 的最新修訂

表示法

  • 「○○○」使用者姓名
  • 「□□□□」site的資料夾名稱
  • 「☆☆☆☆☆」頁名或檔名

用 REQUEST_URI 區分五種輸出情況

  1. /SITE/index.php/頁名:帶 theme 表內頁
  2. /SITE/index.php/wikiSite/index.php/頁名:帶 theme wiki頁
  3. /webContent.php/頁名:跨 theme 表內頁
  4. /webContent.php/wikiSite/index.php/頁名:跨 theme wiki頁, ?
  5. 其他實體檔案

/SITE/index.php 和 /webContent.php 內容大致一樣,只是位置不同

確保 theme 中含有 javascript 中的 ajax webContent() 函式,萬一無 theme 時也可載入文件根目錄的 webContent.js