DrupalL E T ’ S T A L K
O B J E C T - O R I E N T E D C M S D E S I G N
aboutC R E D E N T I A L S , E X P E R I E N C E , P A S S I O N
Eric SembratWeb ManagerGeorgia Institute of Technology - College of Engineering Ph.D. StudentGeorgia State University - Learning Technologies Division
PresidentAtlanta Drupal Users Group
Vice PresidentGeorgia Tech Drupal Users Group
nerd extraordinaire
gameplanT O P I C S , S E C T I O N S , D I S C U S S I O N
HISTORY
HISTORYDATA
OVERVIEW
HISTORYDATA
OVERVIEWDATA
DETAIL
PIECING TOGETHERHISTORY
DATA OVERVIEW
DATA DETAIL
lil’ historyA L O O K B A C K I N T I M E
overviewT H E L E G O P I E C E S O F D R U P A L
Fields
Views
Entities
Nodes Taxonomies
Fields
Entities
Nodes
Views
Taxonomies
Fields
Entities
Nodes
Views
TaxonomiesWebsite Data
Fields
Entities
Nodes
Views
Taxonomies
Fields
Entities
Nodes
Views
Taxonomies
Data Object
Fields
Entities
Nodes
Views
Taxonomies
Fields
Entities
Nodes
Views
Taxonomies
Data Display
fieldsA L O O K B A C K I N T I M E
fieldsFields are building blocks of your website.Individual pieces of data (text field, image, wysiwyg field, file upload). Operate as micro-widgets on data structures.
Fields are reusable and configurable.Can be reused for multiple data structures.
Let’s consider an example.A real world example of how fields are used.
What fields make up this slideshow entry?Let’s break up the slideshow into its individual pieces.
What fields make up this slideshow entry?Let’s break up the slideshow into its individual pieces.
What fields make up this slideshow entry?Let’s break up the slideshow into its individual pieces.
What fields make up this slideshow entry?Let’s break up the slideshow into its individual pieces.
What fields make up this slideshow entry?Let’s break up the slideshow into its individual pieces.
What fields make up this slideshow entry?Let’s break down the slideshow into its individual pieces.
Slideshow Graphic (image field)Title (text field)
Description (text field)
Button Text (text field)
Button URL (link field)
What do fields look like?In Drupal, field configuration is a draggable list.
field typesCore (included in Drupal by default)TextLong TextBooleanFileImageDecimalFloat List (float, integer, text) Term Reference
Contributed (extensions)Node ReferenceEntity Reference
Name FieldAddress
Google MapParagraphs
Field CollectionField Group
EmailDateLink
Phone NumberCSS
Gyfcat(and so many more)
nodesA L O O K B A C K I N T I M E
nodesNodes are Drupal’s basic data objects. Nodes are collections of specific fields used for a single purpose.
Nodes are individual pieces of content.
Let’s consider an example.A real world example of how nodes are used.
What nodes make up this slideshow entry?Let’s break down the slideshow into its individual nodes.
Node (slideshow)
That’s easier!This node has all the fields we outlined in the last example.
Clicking the arrows show you a different slideshow node.
taxonomyA L O O K B A C K I N T I M E
taxonomyTaxonomy are Drupal’s reusable lists. Taxonomy terms are node-like objects that collect themselves into lists.
Taxonomy lists are called vocabularies.
Vocabularies can then be referenced in Nodes as a Term Reference field.
Let’s consider an example.A real world example of taxonomies.
What’s a scenario you would use a taxonomy term?Here’s something that I use often at Georgia Tech.
No more remembering all the schools. Take that, memorization.
entitiesA L O O K B A C K I N T I M E
entityEntities are data objects in Drupal. Taxonomy terms and Nodes are both entities, because they both contain fields.
Other examples in Drupal include Files, User Accounts, and contributed modules like Paragraphs.
Entities can be chained and linked together.
Let’s consider an example.A real world example of entities.
Let’s say we want to extend our slideshow.Back to our old friend, Dr. Slideshow.
We only want to show some slides on the front page, and keep others for other pages.
With the powers of entities combined…We can add a new entity (node type) called Slideshow that
contains an entity reference field.
That field would link to pre-existing slideshow node entities.
viewsA L O O K B A C K I N T I M E
viewsViews is the workhorse of Drupal. Views provides for custom displays of entity content and fields.
Views can take various forms (slideshows, tables, lists, numbered lists, and more).
Views is primarily used to list multiple entities that share a common criteria.
Let’s consider an example.A real world example of how nodes are used.
short demo.
questions?