pbootcms资料

pbootcms网站页面常用调用标签-[详情页/tag页/搜索页]

2025-12-02 admin 28 Read


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}" />

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}


——【搜索列表】

{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}


Q Q客服:2495887681
微信客服:bai008net
微信二维码
X

号码:

(点击号码复制,添加好友)

  打开应用