silbinarywolf / silverstripe-stagingbar
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
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
Quick Install
- Put module in root folder
- 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
- Go into stagingbar/templates/Includes/StagingBar.ss
- Copy paste into your theme Includes folder.
- Modify however you want.