
pbootcms常用标签代码集合
更新日期:2024-09-27 20:35:12 来源:网络

内容整理成表格的形式,便于查阅和使用:
功能 | 标签 | 参数 | 示例 | 说明 |
---|---|---|---|---|
模板文件嵌套引用 | {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的各种标签和功能。

- 请问如何处理升级为香港主机后网站无法访问的问题
- 防火墙设置与云服务器80端口访问限制
- 解决远程登录服务器失败及重启后仍无法连接的问题
- 远程访问故障排除 - 解决无法登录虚拟主机和数据库的问题
- 解析与绑定完成后网站仍无法正常访问的排查步骤及解决方案
- 请问如何在ASP页面中判断客户端浏览器是否为移动设备,并进行相应的跳转?
- 输入网站后台密码时显示不对,如何解决?
- 选择合适工具,掌握静态网站模板修改方法
- 静态网站上传后如何安全有效地进行修改,确保不影响网站的正常运行?
- 请问如何修改网站图片源代码
- 网站admin密码忘记了怎么办
- 如何解决PbootCMS网站后台推送文章到百度时的“site error”错误?
- 迅睿CMS网站用户投稿如何取消验证码
- 宝塔面板提示不是安全连接或私密连接,如何解决?
- 网站提示429 Too Many Requests:用户发送了太多请求怎么办
- 易优cms搜索结果页如何统计关键词文章数量
- 网站源码安装后访问首页,页面错乱的处理方法
- pbootcms模板如何做好防护
- 重置网站后台管理员账号密码
- 升级完后网站提示500错误怎么办
- pbootcms如何设置发布内容不自动提取缩略图(1)
- 百度网址安全中心提醒您:该页面可能存在违法信息!如何处理?
- 易优cms数据表或视图不存在,请联系技术处理。
- Pbootcms留言“提交成功”的提示语修改(1)
- PBOOTCMS中新增并开启手机端模板,以便为用户提供更好的移动设备浏览体验
- imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile
- 易优CMS文章内容页如何获取上一篇下一篇
- PbootCMS全站模板date时间标签/时间格式常见的8种调用方式
- pbootcms网站后台登录提示:”登录失败:数据库目录写入权限不足!“
- Nginx 启动/停止 / 首页显示 / 安装 / 卸载