Download the PHP package zanderwar/silverstripe-thankfully without Composer
On this page you can find all versions of the php package zanderwar/silverstripe-thankfully. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zanderwar/silverstripe-thankfully
More information about zanderwar/silverstripe-thankfully
Files in zanderwar/silverstripe-thankfully
Package silverstripe-thankfully
Short Description A module designed to reduce the potentially thousands of Thank You pages that can be sometimes needed for large sites
License MIT
Informations about the package silverstripe-thankfully
silverstripe-thankfully
If you're tired of having to continuously create dozens of different "Thank You" pages than thankfully this module exists!
With this module you can easily create a "Thank You" page that is configurable in the CMS for any page type that you assign this module to.
Features
- Page creates itself under the parent on dev/build
- Query string support for conversion tracking etc, configurable from the CMS
Installation
Installation is supported via composer only:
Run a dev/build afterwards
Configuration
- Open your
mysite/_config.php
file -
Add:
- Run a
?flush=1
- Open the page that has
ContactPage
(in this example) as the type within the CMS and you will now see a "Thank You" tab
In your controller (in this example ContactPage_Controller
) you now have access to the method $this->getThankYouPage()
which you can then immediately return $this->redirect($this->getThankYouPage()->Link())
. This would most commonly be done in a form processing method
If the page title and/or content is not set in the page with the extension, it will fallback to the values set in the Thank You (Generic)
that the dev/build created in the root of your site tree, if no defaults are configured, then the visitor will get a bit of an ugly experience
Example
Contributing
If you would like to contribute to this repository, please follow the contributing guide.
License
Click here for more information about the licensing of this module
Issues
To report issues with this module, please use our issue tracker.