示例:{pc:get sql="SELECT * from v9_news where status=99 and catid in(6,7,8) order by id DESC" num="10" return="data"}{loop $data $r}<a href="{$r[url ...
不同於Wordpress,Phpcms默認不支持隨機文章調用,必須自己動手實現,調用代碼如下: 上述代碼只做了一點修改:order rand ,其它與正常調用一樣。 ...
2012-07-26 08:37 0 3634 推薦指數:
示例:{pc:get sql="SELECT * from v9_news where status=99 and catid in(6,7,8) order by id DESC" num="10" return="data"}{loop $data $r}<a href="{$r[url ...
后台文章排序怎么才可以按自己輸入的數字排列?如按4,3,2,1,從大到小排列?實現方法如下: 修改文件: phpcms\modules\content 中的 content.php 代碼如下: $datas = $this->db->listinfo($where ...
{pc:content action="position" posid="14" catid="13,14,15,16,17,18,19,20,21" order="listorde ...
PHPCMS V9的標簽制作以靈活見長,可以自由DIY出個性的數據調用,對於制作有風格有創意的網站模板很好用,今天就介紹一個標簽循環嵌套方法,可以實現對PC標簽循環調用,代碼如下: 在此文件里/phpcms/lib/classes/template_cache.class.php 里 ...
代碼如下:{loop $shigongtu $r} src="{$r[url]} " title="測試"/>{/loop} 2 首頁,分頁調用 第一種推薦位調用自定義字段在模型里加好自定義字段后,必須把“在推薦位標簽中調用”點擊“是“然后用同一樣的方法去調節數據就OK ...
本角色成員); v9設置文章的審核功能" src="http://s14.sinaimg.cn/mw ...
1、頁面標題:{$title} 2、發表時間:{$inputtime} 3、內容來源:{$copyfrom} 4、文章內容:{$content} 5、縮略圖地址:{$thumb} 6、組圖列表: 注釋:其中$photos為自定義組圖字段,{$r[url ...
本文介紹phpcms v9中模板標簽使用說明。 》》調用根目錄下phpcms\template\content\header文件 {template "content","header"} 》》字符集 (gbk或者utf-8) {CHARSET} 》》標題和標題seo優化 ...