#03 - Building Configuration forms
Closed this issue · 0 comments
Objective
At the end of this course, you will be able to
Create a very basic configuration form on a custom page
UProvide Default values for the configuration on the form
Save the configuration values on form submission.
Exercise
Create a custom module that provides a configuration form available at the url “mymodule/config” to all users with the permission “administer content”
The form shall have 3 fields. Labels and Types of fields are arbitrary. Ensure you have diverse fields Text, Select, Radio
Get the form to work such that the form values are saved and persisted on the form on reload.
The values submitted on the form should be accessible elsewhere on the same or a different module using the Config API.
Bonus Exercise
Create your own permission and use that to restrict this page