wedevelopnl / silverstripe-admintoolbar
silverstripe 的管理员工具栏
2.0.6
2024-05-22 13:17 UTC
Requires
- php: ^8.1
- silverstripe/cms: ^5.0@stable
Requires (Dev)
README
介绍
在前端显示带有管理员选项的工具栏
要求
- SilverStripe CMS ^4.0
安装
composer require "wedevelopnl/silverstripe-admintoolbar"
如何使用
将 $AdminToolbar
放置在您的 Page.ss 中以显示管理员工具栏。
选项
使用配置禁用按钮
WeDevelop\AdminToolbar\AdminToolbar:
hide_cache_button: true
hide_stage_button: false
hide_edit_button: false
在 WeDevelop\AdminToolbar\AdminToolbar
上添加扩展,使用方法 addExtraButtonsHTML(&$extraButtonsHTML)
添加额外按钮