首先聲明下,如果您對 html 、 CSS 、 PHOTOSHOP 不熟悉,特別是 HTML 、 CSS 請繞道

第一種:門户首頁模板 (index.htm,保存於 template/default/portal)

  1. <!--{subtemplate common/header}-->
  2. <style id="diy_style" type="text/css"></style>
  3. 這裏可以隨意自定義代碼
  4. <!--{subtemplate common/footer}-->

 

第二種:欄目模板 (必須命名 list_xx.htm,保存於 template/default/portal),做好以後在欄目編輯裏面選擇相應模板,再就行 DIY

  1. <!--{subtemplate common/header}-->
  2. <!--[name] 欄目模板——欄目名稱自定義 [/name]-->
  3. <style id="diy_style" type="text/css"></style>
  4. 這裏可以隨意自定義代碼
  5. <!--{subtemplate common/footer}-->

 

第三種:專題模板 (必須命名 portal_topic_xx.htm,保存於 template/default/portal),做好以後在專題添加或編輯中選擇相應模板,選擇是否統一頁頭和頁尾,再 DIY

  1. <!--{subtemplate common/header}-->
  2. <div id="pt" >
  3. <!--{subtemplate common/simplesearchform}-->
  4. <div >
  5.   <a href="./" title="{lang
    homepage}">$_G[setting][bbname]</a>
    <em>&rsaquo;</em> $topic[title]
  6. </div>
  7. </div>
  8. <link id="style_css" rel="stylesheet" type="text/css" href="http://STATICURLtopic/t1/style.css?VERHASH">
  9. <style id="diy_style" type="text/css"></style>
  10. <div id="widgets"></div>
  11. 這裏可以隨意自定義代碼
  12. <!--{subtemplate common/footer}-->

 

其中:

  1. <div id="pt" >
  2. <!--{subtemplate common/simplesearchform}-->
  3. <div >
  4. <a href="./" title="{lang
    homepage}">$_G[setting][bbname]</a>
    <em>&rsaquo;</em> $topic[title]
  5. </div>
  6. </div>

 

是位置和搜索框,可以刪除

其中自定義代碼部分需要 DIY 的地方使用下面代碼,注意代碼中的兩個 diy1 必須保持一致,並且同一個 htm 頁面中不得重複出現

  1. <!--[diy=diy1]--><div id="diy1" ></div><!--[/diy]-->