Drupal 8 opens the door for clean, readable, version-controlled configuration in Drupal development. But how can we leverage this system effectively in development teams? Configuration Management in Drupal 7, Our Process Our collaborative Drupal 7 development process typically starts with a site built by a team, entirely defined in code. We don’t do databases until… Continue reading Drupal CMI: How Drupal 8’s Configuration API Can Work for Development Teams
Author: Chris Caldwell
Define Text Format in Drupal Migrate Field Mappings
In migrate, defining a text format for a mapped field is fairly straightforward. $this->addFieldMapping(‘field_about_us:format’) ->defaultValue(‘full_html’); What we’re doing in the example above is mapping the default value “full_html” to the “format” subfield of the “field_about_us” field. This essentially sets the text format to full_html for data migrated into our content type. More field-mapping specific information… Continue reading Define Text Format in Drupal Migrate Field Mappings
Accessing Field Values in Drupal 7
There are two great ways I’ve found to quickly access an entity’s field values in a Drupal-friendly way. Both of these approaches assume that you already have your entity loaded into a variable available to you. This week, I’ll be focusing on Entity metadata wrappers. Entity metadata wrappers Entity metadata wrappers are another great way… Continue reading Accessing Field Values in Drupal 7
Accessing Field Values in Drupal 7 Using field_get_items()
There are two great ways I’ve found to quickly access an entity’s field values in a Drupal-friendly way. Both of these approaches assume that you know the type of entity you’re working with and that you already have your entity loaded into a variable available to you. This week I’ll be focusing on the handy… Continue reading Accessing Field Values in Drupal 7 Using field_get_items()
Code-driven Content in Drupal Development
Here at NEWMEDIA we use a 100% code-driven development model, and a new website’s initial content is no exception. Code-driven content? Yes. We take a code-based approach to initial content in our sites as well. Basically, we define content in code as part of our install profile for the site and inject it into the… Continue reading Code-driven Content in Drupal Development