silbinarywolf/silverstripe-stagingbar

此包已被废弃,不再维护。未建议替代包。

在查看草稿/在 ?stage=Stage 模式下时,向前端添加导航栏。

安装: 7

依赖: 0

建议者: 0

安全性: 0

星标: 1

关注者: 0

分支: 1

类型:silverstripe-module

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

快速安装

  1. 将模块放入根目录
  2. 享受吧!

配置

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())

覆盖暂存栏模板

  1. 进入 stagingbar/templates/Includes/StagingBar.ss
  2. 将内容复制粘贴到您的主题 Includes 文件夹。
  3. 按需修改。

致谢

Squizlabs - HTML 代码嗅探器