催命判官 | 發表于:12-02-28 13:51 編輯于:04-10 11:54 [添加收藏] 樓主 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
經過了測試 K9的單頁面是可以實現多個分頁的,當然也包含了單頁面 并且方法也很簡單,只要修改下url就OK了 公司新聞、公司觀點、行業快訊的路徑和url是一致的,代碼如下: 至于產品也是類似的方法。。。 以后不用妒忌別的網站有多分頁的,因為咱K9也可以實現的 <div class="newsa"> <h2><a href="/news/">公司新聞</a></h2> <ul> {@res.select_join table1='%s_content_categroy_bind' table2='%s_content' field2='title,url,date' on='id' where='t2.mid=1 and t2.status=1 and cid=18' url="/news/" order='t2.id desc' number='12'} {#foreach($res as $rs)} <li><a href="{DIR}{$rs[url]}" title="{$rs[title] code='quote'}">{$rs[title]}</a>[{$rs[date] date='Y-m-d'}]</li> {#endforeach} </ul> {$res_pagelist code='html'}<br/> </div> <div class="newsa"> <h2><a href="/viewpoint/">唯眾觀點</a></h2> <ul> {@res.select_join table1='%s_content_categroy_bind' table2='%s_content' field2='title,url,date' on='id' where='t2.mid=1 and t2.status=1 and cid=19' url="/viewpoint/" order='t2.id desc' number='12'} {#foreach($res as $rs)} <li><a href="{DIR}{$rs[url]}" title="{$rs[title] code='quote'}">{$rs[title]}</a>[{$rs[date] date='Y-m-d'}]</li> {#endforeach} </ul> {$res_pagelist code='html'} <br/> </div> <div class="newsa"> <h2><a href="/industry-news/">行業快訊</a></h2> <ul> {@res.select_join table1='%s_content_categroy_bind' table2='%s_content' field2='title,url,date' on='id' where='t2.mid=1 and t2.status=1 and cid=20' url="/industry-news/" order='t2.id desc' number='12'} {#foreach($res as $rs)} <li><a href="{DIR}{$rs[url]}" title="{$rs[title] code='quote'}">{$rs[title]}</a>[{$rs[date] date='Y-m-d'}]</li> {#endforeach} </ul> {$res_pagelist code='html'} <br/> </div>
Ta最近還發表過
[幫助]
K9企業模板sky發布
(19-05-06)
[分享]
K9單頁面實現欄目多分頁的方法
(18-03-06)
[分享]
K9內測中經常用到的標簽 拿來給大家分享下
(17-05-10)
[分享]
KingCMS地方門戶版v2.2幫助文檔【在線版本】目錄
(17-04-24)
[幫助]
K9第三方登錄接口發布
(15-10-12)
隨機閱讀
[錯誤]
提醒KingCMS PHP 6.1.1641重大漏洞,我已中招
(15-02-07)
[使用]
MilkCocoa.TTF文件刪除不了
(12-09-12)
[使用]
在論壇轉了下。中了三等獎。。10金幣。oh yeah
(12-04-21)
[分享]
新的緊急情況通知
(11-10-26)
[分享]
kingcms v7 是不是快出來了
(11-09-09)
|
催命判官 | 發表于:12-02-28 13:52 沙發 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Reply: 樓主
傳個真相上去 |
恒星 | 發表于:12-02-28 14:39 板凳 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() |
樓主是高階應用啊..
|
wuchunkai | 發表于:12-02-29 09:13 4樓 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
不錯不錯。繼續……!
|
missliamg | 發表于:12-03-02 09:08 5樓 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() |
分頁的方法
這功能不錯 |
lanrennet | 發表于:12-03-03 20:31 6樓 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() |
這個功能 給力
|
zhulin | 發表于:12-03-11 14:59 8樓 [回復] #Top# |
---|---|
![]() ![]() |
這個確實不錯,必須過來支持一下
|
kenxie | 發表于:12-03-19 12:40 9樓 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() |
K9 又要重新學習了!什么時候能出來呢?
|
lzze | 發表于:12-03-20 21:42 10樓 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() |
圖片是個XX
|
催命判官 | 發表于:12-03-22 12:42 11樓 [回復] #Top# |
---|---|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Reply: 10樓
用什么瀏覽器,我這里是正常的 |