| 基本資訊 | ||
| 站點標簽 | {$system.site_name} | |
| 站點email | {$system.email} | |
| license(版權資訊) | {$system.site_license} | |
| 站點路徑 | {$root} | |
| 頁面標題 | {$page_title} | |
| 目前位置 | {$position} | |
| 頁面內容 | {$page_content} | |
| 登陸口 | {insert name=member_block login=login.tpl member=member_cp.tpl} 插入登陸口的代碼,login表示登陸口的模板,member代表登陸後的模板,2個模板都位於template目錄中,可以自己定義 |
|
| 搜索框 | {insert name=search template=search_block.tpl} search_block.tpl是搜索的模板,位於blocks中. |
|
| 頁面內容 | {$page_content} | |
| 頁面內容 | {$page_content} | |
| 頁面內容 | {$page_content} | |
| 頁面內容 | {$page_content} | |
| 頁面內容 | {$page_content} | |
| 頁面內容 | {$page_content} | |
| 選單 | ||
| 橫向選單 | {insert name=menu ctype=link cid=$cid} 如果想固定此選單內容為某個分類的下屬的子選單,將$cid改為此分類的ID,如果是0,顯示站點的第一層的選單 |
|
| 豎向選單 | {insert name=menu ctype=button cid=$cid} |
|
| 橫向下拉方塊 | {insert name=ddMenu cid=$cid level=3 bg_img=images/menubg.gif hl_img=images/menubg2.gif top_width=80 top_height=20 sub_width=80 sub_height=20} cid是分類ID,level:顯示層數,bg_img:選單單元格背景圖片,hl_img:目前選單的背景圖片,top_width:第一層選單的單元格的寬度,top_height:第一層選單單元格的高度,sub_width:下拉方塊單元格的寬度,sub_height:下來選單單元格的告訴 |
|
| 樹型橫向選單 | {insert name=buttonnavs id=$cid} id是目前分類的ID,不要設定為0,設定為0,就沒有樹型的效果 |
|
| 清單代碼 | ||
| 文章清單 | {insert name=article cid=10 limit=4 ismax=16 ismore=1 template=image_block.tpl order_by=date_desc} cid清單的分類ID,limit:清單數目,ismax:標題截取位元組數,0表示不截取,ismore:1表示顯示更多的鏈接,0表示不顯示,template:清單使用的模板,模板位於模板目錄的blocks中,order_by:排序方式,預設是日期逆向排序,date_asc:日期順序,hit_desc:點擊逆向排序,hit_asc:點擊順序排列 根據你目前指定的類別不通,以及選擇的模板不同,可以實現下載清單,圖片清單,商品清單等一系列的功能,根據排序方式的不同,可以實現最新更新和排行榜的功能 |
|
| 專題文章清單 | {insert name=topic tid=1 page=10 ismax=28 mark=· template=default.tpl} |
|
| 投票清單 | {insert name=poll id=1 template=poll.tpl} id是投票的ID |
|
| 插入輪循廣告 | {insert name=ad tid=0} tid是表示類別,隨機顯示 |
|
| 插入單個廣告 | {insert name=ad aid=1} aid是廣告的id |
|
| 插入鏈接清單 | {insert name=link limit=5} limit是鏈接的個數 |
|