02 2014 档案
摘要:在使用PHPCMS开发网站时遇到了一个搜索功能,需要在搜索结果分页链接上添加一些传递的参数,不然不能够正确翻页。方法:找到\phpcms\libs\functions\global.func.php文件;然后找到function pageurl($urlrule, $page, $array = array()) 方法里边的$url = str_replace($findme, $replaceme, $urlrule);代码。在这个代码上边加上:$urlrule.=’&siteid=’.$_GET[siteid].’&title=’.$_GET[title].’&ba
阅读全文
摘要:PhpCms V9调用指定栏目子栏目文章的方法第一种,直接写父类id{pc:content action="lists" catid="父类id" num="10" order="id desc"}{loop $data $r}{/loop}{/pc}第二种、直接写子栏目id ,用cat in{pc:getsql="SELECT * from v9_news where status=99and catid in(21,22,23,24,25)order by id DESC" num=&quo
阅读全文