本篇文介绍phpcms v9中模板标签使用说明使用。
》》调用根目录下phpcms\template\content\header文件
{template “content”,“header”}
》》字符集 (gbk或者utf-8)
{CHARSET}
》》标题和标题seo优化
{if isset(KaTeX parse error: Expected 'EOF', got '&' at position 15: SEO['title']) &̲& !empty(SEO[‘title’])}
{
KaTeX parse error: Expected 'EOF', got '}' at position 13: SEO['title']}̲{/if} {
SEO[‘site_title’]}
{
KaTeX parse error: Expected 'EOF', got '}' at position 15: SEO['keyword']}̲ {
SEO[‘description’]}
》》地址替换为根目录下\statics\css
{CSS_PATH}
》》地址替换为根目录下\statics\js
{JS_PATH}
》》pc标签{pc:content 参数名="参数值"参数名="参数值"参数名=“参数值”}
{pc:content action=“position” posid=“9” order=“id” num=“10” cache=“3600”}
》》pc标签值
action=“position”--------------对话框的类型=“内容推荐位列表”
posid=“9”----------------------推荐位ID=“9”
order=“id”---------------------排序类型=“id”
num=“10” ----------------------数据调用数量=“10”
cache=“3600”-------------------缓存="3600"毫秒
{get_siteid()}
{IMG_PATH}
action=“hits” 排行,热点等
action=“lists” 主要用于列表等。
catid=“ c a t i d " 当 前 栏 目 I D 指 定 数 字 , 即 为 指 定 的 栏 目 n u m = " " 调 用 文 章 的 数 量 o r d e r = " i d D E S C " 按 I D 降 序 排 列 o r d e r = " i d A S C " 按 I D 升 序 排 列 " v i e