调用根目录下:{template “content”,”header”},如下:
phpcms/template/content/header文件
字符集,gbk或者utf-8,{CHARSET}.
标题和标题seo优化:
{if isset($SEO['title']) && !emptyempty($SEO['title'])}
{$SEO['title']}{/if}
{$SEO['site_title']}
{$SEO['keyword']}
{$SEO['description']}
地址替换为根目录下/statics/css:{CSS_PATH}.
地址替换为根目录下/statics/js:{JS_PATH}.
{pc:content action=”position” posid=”9″ order=”id” num=”10″ cache=”3600″}
pc标签{pc:content 参数名=”参数值”参数名=”参数值”参数名=”参数值”}
{loop $data $k $v}
<li><a href=”{$v[url]}”>{$v[title]}</a></li>
{/loop}
pc标签值:
action=”position”————-对话框的类型=“内容推荐位列表”
posid=”9″——————–推荐位ID=“9”
order=”id”——————–排序类型=“id”
num=”10″ ——————-数据调用数量=“10”
cache=”3600″—————-缓存=”3600″毫秒
{APP_PATH}—————–项目地址
{get_siteid()}—————-
{IMG_PATH}—————–
action=”hits” 排行,热点等
action=”lists” 主要用于列表等。
catid=”$catid” 当前栏目ID 指定数字,即为指定的栏目
num=”" 调用文章的数量
order=”id DESC” 按ID降序排列
order=”id ASC” 按ID升序排列
order=”views DESC”
sort=”"
thumb=”1″ 缩略图
return=”"
page=”$page” 需要分页
每当列表几行的时候出现一次这个:
{if $num%2==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)}.
分页标签——{$pages}
文章页标签
父栏目名称——{$CATEGORYS[$CAT[parentid]][catname]}
父栏目链接——{$CATEGORYS[$CAT[parentid]][url]}
上上级栏目名称——{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]}
上上级栏目链接——{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]}
一级父栏目列表:
{pc:content action=”category” catid=”0″ num=”34″ siteid=”$siteid” order=”listorder ASC”}
{loop $data $r}
<li><a href=”{$r[url]}”>{$r[catname]}</a></li>
{/loop}
{/pc}
phpcms_v9 标签整顿
调用根目录下:{template content,header},如下: phpcms/template/content/header文件 字符集,gbk或者utf-8,{CHARSET}. 标题和标题seo优化: {if isset($SEO[title]) !emptyempty($SEO[title])} {$SEO[title]}{/if} {$SEO[site_title]} {$SEO[keyword]} {$SEO
本文来自网络,不代表站长网立场,转载请注明出处:https://www.tzzz.com.cn/html/jianzhan/jy/2021/1218/40635.html