Create a free account to get access to additional free training videos. Enjoy this free video from CraftQuest! Create a free account to get access to additional free training videos. Join the Community
Creating a Craft CMS Field Type
Our goal with this course is learn the different pieces of a custom field type in Craft CMS and how easily we can bring them together to build something that we need for our site.
In this course we are going to learn how to create a custom field type for Craft CMS. You may be watching this because you’re curious about how to extend Craft or, more likely, you find yourself in need of a custom field type for Craft and want to know how to build it.
Every implementation is different. You may need to populate your field type with data from an external data source or one of your plugins but the general approach is the same.
Our goal with this course is to learn the different pieces of a custom field type in Craft CMS and how easily we can bring them together to build something that we need for our site.
In this course, we’re building two different field types. First, we’ll create a field that provides a dropdown field of a list of world languages. The label will be the language name, and the value will be the language two-letter code.
While building this field type, we’ll learn the fundamentals and tools we need to make just about anything.
We will take what we’ve learned and then build another field type that connects to Craft Commerce. This field type, also a Dropdown field, will give us a dropdown field of the Craft Commerce subscriptions plans we have enabled for the site.
Creating a Craft CMS Field Type is made up of the following videos: