——致力做企业用得上的平台; ——开发企业节省成本的系统;
pbootcms网站常用的参数标签汇总、以及操作过程中的一些bug问题解决方法,pboot网站二开,以下龙腾飞网络科技-小吴在建站实操中笔记记录,pbootcms建站教程/pb网站建设教程 保存使用非常方便:
【PB建站教程】
pboot网站页面常用调用标签-[详情页/tag页/搜索页]
——【详情页】
{pboot:position separator=>> indextext=首页}
{content:title}
{content:date style=Y-m-d}
//更新日期
{content:visits
//文章访问量
{content:source}
//文章来源
{content:author}
//文章作者
<a href="{sort:link}" target="_blank">{sort:name}</a>
//栏目名称及链接
{content:content}
//文章内容
{pboot:tags id={content:id}}
//文章tag调用 id={content:id}:对应文章的id调用
<a href="[tags:link]">[tags:text]</a>
{/pboot:tags}
{content:precontent}
//上一篇
{content:nextcontent}
//下一篇
{pboot:pagetitle}
//表示页面标题
{pboot:sitetitle}
// 表示站点标题
{pboot:sitesubtitle}
// 表示副标题
{content:title}
//表示文章标题
{content:subtitle}
//表示文章副标题
——【tag页面】
<title>搜素:{$get.tags} -{pboot:sitetitle}</title>
//{$get.tags}:当前进入页面的tag标签词
<meta name="Keywords" content="{pboot:sitekeywords}" />
<meta name="Description" content="{pboot:sitedescription}" />
——【tag标签调用】
1、全站tag调用
{pboot:tags}<a href="[tags:link]">[tags:text]</a>{/pboot:tags}
2、内容页
{pboot:tags id={content:id}}
<a href="[tags:link]">
[tags:text]
</a>
{/pboot:tags}
3、tags.html调用列表
{pboot:list num=10 scode=* page=1}
4、当前tag名称
{$get.tag}
——【tag文章列表页】——调用展示全部标签的文章
——常用标签
{pboot:list scode=* }
{pboot:tags order=date }
[list:link]
[list:title]
[list:ico]
[list:description function="cn_substr(@me,300)"/]...
——代入场景
<a href="{sort:link}" target="_blank">{sort:name}</a>
//文章对应栏目名称
【<a href="[tags:link]">[tags:text]</a>】
//文章tag标签
{/pboot:tags}
{/pboot:list}
——【tag标签汇总页】
{pboot:tags num='1000' }
<a href="[tags:link]" target="_blank">
[tags:text]
</a>
{/pboot:tags}
——【搜索页面】
<title>"{$get.keyword}"搜索结果_{pboot:sitetitle}</title>
//{$get.keyword}:搜索关键词
<meta name="Keywords" content="{pboot:sitekeywords}" />
<meta name="Description" content="{pboot:sitedescription}" />
——【搜索页面当前位置】
<a href="{pboot:sitedomain}/">首页</a> >> 搜索页</span>搜索 <strong>{$get.keyword}</strong> 的结果
——【搜索列表】
{pboot:search scode=* order=date page=0}
[search:link
//搜索文章链接
[search:title function=' ( strlen("@me")>150 ? cn_substr("@me",150)."" : "@me" ) ' ]
//搜索文章标题
<a href="[nav:link]" target="_blank">[nav:name]</a>
//搜索文章对应栏目名称
[search:ico]
//搜索文章图片
[search:description function="cn_substr(@me,300)"/]...
//搜索文章导读/摘要
[search:date]
//搜索文章发布日期
{/pboot:search}