• Schedule
  • Videos
  • About
  • Sponsors
  • News
  • Sessions
  • Attendees
  • Directions
  • FAQ
  • Contact Us
DrupalCamp LA 2011

Developing custom-built Field Types

Note: this is an archived site. Visit us at http://ladrupal.org.
31
Sign In
  • Best Practices
  • Code
  • code & development
  • custom module development
  • Fields
  • formapi
  • Advanced
  • Code & Development
Logistics
Day: 
Saturday
Time: 
4:00p
Room: 
Doheny Beach B (95)
Duration: 
One hour
Link: 
screencast

“Why should I care about custom-built field types when Drupal already provides me the essentials?“

Often we store information in our nodes (or whatever entity) in terms of groups of data (for example, a street address, city, state, and postal code), however, the most commonly used strategy has been to create individual fields and “glue” them all together to make them appear as they are coherent. This is simply wrong!

There is a huge difference between grouping a series of textfields together and calling it a “thing”, and using say, the address field module. With simply configuring individual fields together, there is a cost of performance, complexity, and an overhead of maintaining a lot of custom code (both in the back and front-end.)

By the end of this presentation, you will know how to:

  • Define new field types and build their schema
  • Create configuration forms for fields and their instances
  • Properly validate data going into your fields and define what “empty” means
  • Provide “widget” forms to create meaningful UI’s
  • Provide a layer of configurations to the widgets themselves

The last component of this talk involves the “presentation layer” and is discussed in the “Advanced Theming: Writing Field Formatters” presentation.

  • Login to post comments

Comments

Is this beyond the

Submitted by jchoo on Fri, 2011-08-05 12:09.

Is this beyond the beginning/intermediate user?

  • Login to post comments

Beyond beginners for sure.

Submitted by heliorcolorado on Fri, 2011-08-05 17:37.

Beyond beginners for sure. It’s a definite eye opener for intermediate users who are already comfortable with configuring fields; I’d recommend it.. But there will be a lot of “code talk” when I discuss the “how-to” parts.

  • Login to post comments

Are you covering D6, D7, or

Submitted by jstoller on Fri, 2011-08-05 22:44.

Are you covering D6, D7, or both?

  • Login to post comments

Specifically Drupal 7, but

Submitted by heliorcolorado on Sat, 2011-08-06 12:20.

Specifically Drupal 7, but most of this can all be done in CCK in D6 as well :)

  • Login to post comments

About heliorcolorado

Full Name Helior Colorado

Company ActiveLAMP

Link to web site http://activelamp.com

Interest Arts and Music

View full user profile

Attendees

Filter Sessions

  • All Sessions
  • Your Picks
  • Beginner Track
  • Business Side
  • Code & Development
  • Design & Usability
  • Drupalchix
  • Performance and Scalability
  • Showcase & Strategy
  • Site Building
  • Presenters (must read!)

Become a Sponsor

Attendees

View All

Drupalchix Information

View all Sponsors

  • News
  • FAQ
  • About LA Drupal
  • Become a Sponsor
  • Twitter
Designs by RomyRomy and This By Them. Themed by Media Done Right and the members of LA Drupal. Folk Font (cc 2.5) by Marcel Magalhaes.
Powered by Drupal | Copyright © 2011-2022
Graciously hosted by SoftLayer
LA Drupal on Facebook LA Drupal on LinkedIn LA Drupal on Twitter