示例:{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优化 ...