Download the PHP package zimudec/wn-wizard-plugin without Composer
On this page you can find all versions of the php package zimudec/wn-wizard-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zimudec/wn-wizard-plugin
More information about zimudec/wn-wizard-plugin
Files in zimudec/wn-wizard-plugin
Package wn-wizard-plugin
Short Description Wizard plugin for Winter CMS
License MIT
Homepage https://github.com/zimudec/wn-wizard-plugin
Informations about the package wn-wizard-plugin
wizard plugin
Plugin that allows you to easily implement and configure a wizard system of steps with forms and validations to Winter CMS
Installation
Usage example
Create a new page and add the "wizard" component. You must configure the url to admit an optional parameter "/:step?", Configure the wizard steps, functions for ajax and the views of each step. Here is a complete example of a page with the implementation and explanatory comments. It can be used as a starting point:
Using translated customs error messages
When you define your steps, it is also possible to define custom error messages associated with your validations by using validation_messages
key.
If you need to get these messages in different languages, you can use per-language files.
For example, you can create a file per language, in the dedicated directory ./lang/[language key]/zimudec/wizard/validations.php
, containing the messages définitions.
And then reference those definitions in your steps :
If you need to learn more about validation in Winter CMS, check the documentation for Services/validation.