11.文章调用使用limit
	{pc:content action="position" posid="36" num="1" order="listorder DESC limit 1,1--" }
	其他都是跟以前一样使用
	{pc:content action="position" posid="31" order="listorder DESC" limit='1,8--'}
	{loop $data $r}
	<li><a href="{$r[url]}" title="{$r[title]}" target=_blank>{str_cut($r[title],36,'')}</a></li>
	{/loop}
	{/pc}
	
	12.文章从指定位置开始调用
	起始位置为5,调用3条。相当于limit功能。
	{pc:content action="position" posid="27" order="listorder DESC" num="3" start="5"}
	{loop $data $r}
	<a href='{$r[url]}'>{str_cut($r[description],115)}... </a>
	{/loop}
	{/pc}
	
	13.文章列表页调用关键字,或者首页调用关键字
	
	注意:explode(',',$r[keywords]);是将文章关键词通过英文逗号分离,也就是说每一篇文章都要以逗号间隔关键字,否则调用出来会是全部作为一个关键字。如果是空格间隔关键字,将explode(',',$r[keywords]);改成explode(' ',$r[keywords]);
	{pc:content action="lists" catid="$catid" num="10" order="id DESC" page="$page"}
	{loop $data $r}
	<a href="{$r[url]}">{$r[title]}</a>
	{php $keywords = explode(',',$r[keywords]);}
	<b>文章标签:</b>
	{loop $keywords $keyword}
	<a href="{APP_PATH}index.php?m=content&c=tag&catid={$catid}&tag={urlencode($keyword)}" class="blue"> {$keyword}</a>
	{/loop}
	{/loop}
	{/pc}
	
	14.每当列表几行的时候出现一次某些符号(比如首页里面的文章推荐,一行显示两条,在这两条中间想加一条竖线 | 就用到这个代码了)
	数量大的话就容易出错,因为模运算嘛~~呵呵 不过一般也就4个标题以下
	{pc:content action="position" posid="8" order="listorder DESC" num="2"}
	{loop $data $r}
	<a style="color:#040605" title="{$r[title]}" href="{$r[url]}" target=_blank>{str_cut($r[title],26,'')}</a>{if $n%2==1} |{/if}
	{/loop}
	{/pc}
	
	15.v9 列表页完美支持自定义段调用
	{pc:content action="lists" catid="$catid" num="25" order="id DESC" page="$page" moreinfo="1"}
	{loop $data $r}
	<a href="{$r[url]}">[{$r['字段名']}]> {$r[title]}</a>
	{/loop}
	<div class="pagebar">{$pages}</div>
	{/pc}
	
	16.当前栏目调用父级及以下栏目信息方法
	其他代码 该咋地还是要咋地 。这是要素
	{php $arrchildid = $CATEGORYS[$CAT[parentid]][arrchildid]}
	{pc:get sql="SELECT * FROM v9_news where catid in($arrchildid) cache="3600" page="$page" num="12" return="data"}
	
	17.V9表单功能 提交之后如何返回当前页面,而不是默认的首页文件地址
	
	找到 phpcms\modules\formguide\index.php文件第73行
showmessage(L('thanks'), APP_PATH);
修改成 如下代码即可实现自动返回前一页
showmessage(L('thanks'), HTTP_REFERER);
                    

点击加载更多