silbinarywolf/silverstripe-stagingbar

This package is abandoned and no longer maintained. No replacement package was suggested.

Adds a navigation bar to the frontend when viewing a draft / in ?stage=Stage mode.

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 1

Type: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

Adds a navigation bar to the frontend when viewing a draft / in ?stage=Stage mode.

Screenshot

stagingbar

Quick Install

  1. Put module in root folder
  2. Enjoy!

Configuration

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': ''

Supports

  • Silverstripe 3.1 and up
  • Internet Explorer 9 and up (Browser must support document.querySelectorAll())

Override Staging Bar template

  1. Go into stagingbar/templates/Includes/StagingBar.ss
  2. Copy paste into your theme Includes folder.
  3. Modify however you want.

Credits

Squizlabs - HTML Code Sniffer