nswdpc / silverstripe-exit-button
Exit button for pages
Installs: 22
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:silverstripe-vendormodule
Requires
- silverstripe/cms: ^4 || ^5
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpunit/phpunit: ^9.5
Suggests
- dnadesign/silverstripe-elemental: Elemental content block support
README
This Silverstripe module provides an "Exit Button" that can be included on any web page, either via the CMS using the per-page checkbox in Page > Settings, via a shortcode or programmatically.
What it does do
- provides configurable templates
- provides configurable exit URL value
- multiple button support
- provdes a shortcode for adding the button to any HTML editor field
- replaces the location value
- opens a configured website in a new tab
What it doesn't do
- rewrite browser history
- invalidate a session on the site
Implementation
- Add the
{$ExitButton}
template variable in a template - Enable on a page and/or add an Exit Button shortcode to a relevant HTML editor field
Documentation
- Read the documentation page for implementation details
Installation
The only supported method of installation is via composer:
composer require nswdpc/silverstripe-exit-button
License
Maintainers
PD web team
Bugtracker
We welcome bug reports, pull requests and feature requests on the Github Issue tracker for this project.
Please review the code of conduct prior to opening a new issue.
Security
If you have found a security issue with this module, please email digital[@]dpc.nsw.gov.au in the first instance, detailing your findings.
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
Please review the code of conduct prior to completing a pull request.