Introduction to Element Types in Craft CMS — Part 1 of 3
This recording is Part 1 the first introduction to Element Types in Craft CMS given to a small group of Craft developers. The presentation takes place 2 weeks before Peers 2014 where Brandon's course on Element Types attracted a full house and introduced Element Types to a larger audience.
This recording is the first introduction to Element Types in Craft CMS given to a small group of Craft developers. The presentation takes place 2 weeks before Peers 2014 where Brandon's course on Element Types attracted a full house and introduced Element Types to a larger audience.
A big thanks to Selvin Ortiz for arranging this meetup and to Brandon Kelly for leading it.
- 00:00:55 What is an Element
- 00:09:00 Overview of an example Events Element Type
- 00:12:00 Integrating the Field Layout Designer
- 00:16:40 When to use an ElementType
- 00:19:30 MigrationHelper::makeElemental()
- 00:24:52 More on Field Layouts
- 00:30:05 Creating a New Event Element Type
- 00:33:40 The Event Element Type Class
- 00:37:13 Clarification on what "Content" means in Craft
- 00:38:56 Defining the source list with getSources()
- 00:39:14 Create Element Selector Modal with Javascript
- 00:44:20 Customize table columns with defineTableAttributes()
- 00:50:24 Customize table attributes with getTableAttributeHtml()