Package Description
Want to give your visitors a heads up but need to redirect first? FlashMessage is your solution :-)
Store an error message or a notice and it will be retrievable UNTIL you retrieve it. Once retrieved it's gone.
Usage/Installation Instructions
Install through package management.Set a message as follows:
PHP:$modx->runSnippet('Flash', array('notice' => 'You successfully barred Foo!'));
SNIPPET:[[!Flash?error=`You cannot foo that bar!`]]
And retrieve like this:
[[!Flash:error:notempty=`<div clas="alert alert-error">[[+flash_error]]</div>`]]
or:
[[!Flash:notice:notempty=`<div clas="alert alert-success">[[+flash_notice]]</div>`]]
Details
- Developer(s)
- magnatron
- Released
- 2016-01-28
- First seen
- 2016-01-28
- License
- GPLv2
- Supported databases
- Minimum MODX Requirement
- 2.0
FlashMessage Releases
Vendor | Signature | Released on |
---|---|---|
MODX.com | 1.0-beta1 | 2016-01-28 (8 years ago) |