silbinarywolf / silverstripe-stagingbar
此包已被废弃,不再维护。未建议替代包。
在查看草稿/在 ?stage=Stage 模式下时,向前端添加导航栏。
dev-master / 1.0.x-dev
2016-12-30 11:51 UTC
This package is not auto-updated.
Last update: 2020-01-24 16:28:09 UTC
README
在查看草稿/在 ?stage=Stage 模式下时,向前端添加导航栏。
截图
快速安装
- 将模块放入根目录
- 享受吧!
配置
StagingBar\RequestFilter: # Enable/Disable staging bar enabled: true # Enable/disable Squiz CodeSniffer accessibility checker enable_codesniffer: true # Add additional CSS/JS for bar css_files: 'custom': 'mysite/css/staging-default.css' js_files: 'custom': 'mysite/javascript/staging-default.js' # Disable margin-top push down of content (can be buggy depending on frontend build) 'pushdown': ''
支持
- Silverstripe 3.1 及以上版本
- Internet Explorer 9 及以上版本(浏览器必须支持 document.querySelectorAll())
覆盖暂存栏模板
- 进入 stagingbar/templates/Includes/StagingBar.ss
- 将内容复制粘贴到您的主题 Includes 文件夹。
- 按需修改。