跳至主內容區

XOOPS輕鬆架

:::

主內容區域

選擇後會自動跳轉頁面

3-3 後台管理主頁樣板

  1. 先修改 main.php 的樣板檔設定
    <?php
    /*-----------引入檔案區--------------*/
    $xoopsOption['template_main'] = "tad_signup_adm_main.tpl";
    include_once "header.php";
    include_once "../function.php";
    
  2. 樣板名稱不可和其他模組名稱一樣,故命名一般建議是「模組名稱_後台_頁面名稱.tpl」,以避免檔名重複,若是在前台,則將「_後台」省略即可。

  3. 接著,請將 templates/demo_adm_index.tpl 改為 tad_signup_adm_main.tpl 即可。

  4. 最後,開啟 xoops_version.php 修改樣板設定部份

    //---樣板設定---//
    $modversion['templates']                    = array();
    $i                                          = 1;
    $modversion['templates'][$i]['file']        = 'tad_signup_adm_main.tpl';
    $modversion['templates'][$i]['description'] = 'tad_signup_adm_main.tpl';

     

選擇後會自動跳轉頁面

:::

左邊區域內容

書籍目錄

展開 | 闔起

快速登入


右邊區域內容

請掃此 QR Code 可連至此頁面

計數器

今天: 1313
昨天: 2475247524752475
總計: 9512797951279795127979512797951279795127979512797

頁尾區域