
请问pbootcms常用标签代码集合

内容整理成表格的形式,便于查阅和使用:
功能 | 标签 | 参数 | 示例 | 说明 |
---|---|---|---|---|
模板文件嵌套引用 | {include file=***.html} | 无 | {include file=head.html} | 可以嵌套使用,如:index.html 嵌套 head.html ,同时 head.html 中嵌套 comm.html 。支持使用子目录。 |
时间格式化标签 | [list:date] <br>{content:date} | style=* | [list:date style=Y-m-d] <br>{content:date style=Y-m-d} | 时间格式化标签和 PHP 时间格式化语法一致。参考链接:PHP 时间格式化 |
HTML 去除标签 | [list:content] <br>{content:content} | drophtml=1 | [list:content drophtml=1] <br>{content:content drophtml=1} | 一般在首页等特殊位置需要调取正文一段纯文本时使用。 |
内容截取标签 | [list:title] <br>{content:title} | len=* <br>lencn=* <br>more=* | [list:title len=10] <br>{content:title len=10} <br>[list:title more=*] | 长度截取使用 len= 或 lencn= ,使用 more=* 设置省略号内容。 |
其它格式化标签 | [list:content] <br>{content:content} | dropblank=1 <br>decode=1 <br>decimal=* <br>unit=* <br>operate=* <br>lfield=* <br>mark=1 | [list:content dropblank=1] <br>[list:content decode=1] <br>[list:content decimal=2] <br>[list:content unit=kb] <br>[list:content operate=+1000] <br>[list:content lfield=a,b] <br>[search:title mark=1] | 去除空白字符、解码数据、小数点位数、容量单位、数字运算、限制列表数据查询字段、标红搜索结果关键字。 |
自定义标签 | {label:*} | 无 | {label:custom_label} | 在后台“全局配置 > 定制标签”中定义,前台使用对应名字进行调用。 |
面包屑标签 | {pboot:position} | separator=* <br>separatoricon=* <br>indextext=* <br>indexicon=* | {pboot:position separator=>> separatoricon=’fa fa-angle-double-right’ indextext=首页 indexicon=’fa fa-home’} | 分隔符、分割图标、首页文本、首页图标。 |
当前网址 | {pboot:httpurl} | 无 | {pboot:httpurl} | 自适应获取当前访问网址。 |
当前页面 | {pboot:pageurl} | 无 | {pboot:pageurl} | 自适应获取当前访问页面完整地址。 |
二维码生成标签 | {pboot:qrcode string=*} | string=* | {pboot:qrcode string={pboot:httpurl}{content:link}} <br>{pboot:qrcode string={pboot:pageurl}} | 生成对应文本的二维码图片。 |
程序运行时间 | {pboot:runtime} | 无 | {pboot:runtime} | 输出页面运行时间/缓存时间。 |
留言验证码 | {pboot:checkcodestatus} | 无 | {pboot:checkcodestatus} | 判断留言验证码是否开启状态。 |
站点地图 | http://domain/index.php/sitemap <br>http://domain/index.php/sitemap.xml | 无 | 访问地址即为实时地图。 | |
图片缩放及裁剪 | [list:ico] | width=* <br>height=* <br>maxwidth=* <br>maxheight=* | [list:ico width=100] <br>[list:ico height=100] <br>[list:ico maxwidth=100] <br>[list:ico maxheight=100] | 四个参数可以组合使用,生成改变了图片大小的缓存图片。 |
通过以上表格,你可以快速查阅和使用PBootCMS的各种标签和功能。
标签:pom scope标签 pbootcms内容页关联列表 pom parent标签 pom 标签 标签
更新日期:2025-03-09 00:27:29 来源:网络
下一篇:请问PbootCMS建站系统怎么修改域名授权提示信息

- 请问重置网站后台密码-云服务器问题
- 请问请问如何修改zblog的数据库连接信息?
- 请问高效管理公司网站,选择合适的网站修改工具
- 请问解决虚拟主机预装网站无法访问的问题
- 请问请问如何修改zblog的数据库连接信息以适应新的主机环境?
- 请问重置网站后台密码的正确途径
- 请问解决网站频繁出现 500 内部服务器错误的方法
- 请问移动端安全 - 正确修改移动端网站密码的方法与技巧
- 请问帝国CMS进阶 - 修改帝国管理网站模板的详细步骤与实用技巧
- 请问网站升级数据迁移之后无法访问
- 如何解决PbootCMS网站后台推送文章到百度时的“site error”错误?
- 网站admin密码忘记了怎么办
- 宝塔面板提示不是安全连接或私密连接,如何解决?
- 迅睿CMS网站用户投稿如何取消验证码
- {pboot:sql sql="语句"}[sql:字段]{/pboot:sql}万能循环标签使用介绍
- 网站提示429 Too Many Requests:用户发送了太多请求怎么办
- PbootCMS上传文件大小限制
- 如何优化网站站长信息 - 提升SEO表现与用户体验的最佳实践
- 易优cms搜索结果页如何统计关键词文章数量
- 网站源码安装后访问首页,页面错乱的处理方法
- 重置网站后台管理员账号密码
- 百度网址安全中心提醒您:该页面可能存在违法信息!如何处理?
- pbootcms模板如何做好防护
- pbootcms如何设置发布内容不自动提取缩略图(1)
- 网站提示422 Unprocessable Entity:请求格式正确但请求无法被处理怎么办
- 升级完后网站提示500错误怎么办
- Pbootcms留言“提交成功”的提示语修改(1)
- 易优cms数据表或视图不存在,请联系技术处理。
- Nginx 启动/停止 / 首页显示 / 安装 / 卸载
- PBOOTCMS中新增并开启手机端模板,以便为用户提供更好的移动设备浏览体验