phpcms调用参数大全

{get_siteid()}—————-调用站点ID
{APP_PATH}—————–项目地址
{IMG_PATH}—————–图片资源路径
catid="$$catid" 当前栏目ID 指定数字,即为指定的栏目
action="hits" 排行,热点等
action="lists" 主要用于列表等。
action="position"————-标签类型="内容推荐位列表"
posid="9″——————–推荐位ID="9"
num="10″ ——————-数据调用数量="10"
cache="3600″—————-缓存="3600″毫秒
order="id DESC" 按ID降序排列,"id ASC" 按ID升序排列

thumb="1″ 缩略图
return="" 返回类型
page="$$page" 需要分页
每当列表n行的时候出现一次这个{if $$num%n==0} {/if}
循环标签{loop $$data $$r} {/loop} {loop $$info $$r} {/loop}
日期{date(‘Y-m-d H:i:s’,$$r[inputtime])}
文章链接{$$r[url]}
文章标题{$$r[title]}
标题截取{str_cut($$r[title],40,’…’)}
缩略图loop 是info 的时候用{thumb($$r[thumb],110,0)}
loop 是data 的时候用{thumb($$v[thumb],90,0)}


+