PbootCMS公共标签调用

wdzsjl 2周前 (10-10) 阅读数 6 #常见报错代码

可以在 PbootCMS 中实现多种数据处理和展示功能,使页面更加美观且功能丰富。具体使用方法如下:

  1. 模板文件嵌套引用:使用 {include file=***.html}
  2. 时间格式化标签:使用 [list:date style=Y-m-d] 或 {content:date style=Y-m-d}
  3. HTML 去除标签:使用 [list:content drophtml=1] 或 {content:content drophtml=1}
  4. 内容截取标签:使用 [list:title len=10] 或 [list:title lencn=10]
  5. 其他格式化标签:使用 dropblank=1decode=1decimal=*unit=*operate=**lfield="a,b"mark=1
  6. 自定义标签:使用 {label:***}
  7. 面包屑标签:使用 {pboot:position}
  8. 当前网址:使用 {pboot:httpurl}
  9. 当前页面:使用 {pboot:pageurl}
  10. 二维码生成标签:使用 {pboot:qrcode string=***}
  11. 程序运行时间:使用 {pboot:runtime}
  12. 留言验证码开关状态:使用 {pboot:checkcodestatus}
  13. 站点地图:访问 http://domain/index.php/sitemap 或 http://domain/index.php/sitemap.xml
  14. 图片缩放及裁剪:使用 [list:ico width=100 height=100 maxwidth=200 maxheight=200]
wx.jpg ywfw.jpg
热门