We've made it to the final blog post (for now?) in our spotlight on Symfony in Drupal. In this blog post, we'll take a look at Symfony's utility components. We're using this term to group together Symfony components that provide useful functionality. It's a great idea to familiarize yourself with these. You can make use of them in your own modules, or bring them into other PHP application code.
PHP Attributes for Drupal Plugins
Blog postAs of PHP 8.1, the PHP language has native support for attributes that are compatible with Drupal’s plugin system use case. As a result, Drupal will transition from the use of annotations to PHP attributes, to supply metadata and configuration for plugins. This will require developers to learn the new PHP attributes syntax, and update their existing code to use it. For now, Drupal will continue to support both annotations and attributes. But the proverbial clock is ticking.
So let’s take a look at how we got here, and what you’ll need to do to update your code for future versions of Drupal.
In Drupal 10.2, you’ll notice a new UI when you create a new field. It’s designed to help you recall what each field type means, so that you can make the right choice. Let’s check it out.
Today we finish up the Importing Data With Migrate and Drupal 7 series. In four hours of lessons we've covered everything from Migrate module concepts to writing your own custom data migration. To wrap things up this week, we are going to take a look at using other data sources, like CSV files, as well as different destinations aside from nodes.
This week we are starting off two new series at the same time to cover a very important topic for web sites today: Media Management. Almost every site out there needs to work with media in some way, whether it is just uploading images in your blog posts, or having to work with audio and videos in a variety of ways. In Drupal 7 the Media module has become the go-to solution for handling the full range of media needs.
We're happy to give you Episode 29 of the Drupalize.Me podcast, with Christophe Galli and Miro Dietiker, to talk about Translation Management. This is a great project, available as a module on Drupal.org, that works with various multilingual modules to help you keep your site translation organized. There are a lot of moving pieces in a multilingual site, and these guys have been up to their elbows with it for a long time.
You may have heard some news about the fact that a new theme has been added to Drupal, named Classy. But what kind of theme is it exactly? Is it a pretty new look for Drupal 8? Well, no. You will still see Bartik as the default theme on your Drupal 8 site, so why another theme? Classy is a new base theme in core, which Bartik and Seven will then use as their bases. The idea here is to provide more flexibility to themers when it comes to choosing default CSS classes.
In this episode Kyle is joined by a few members of Lullabot's front-end army. Kris Bulman, Thomas Lattimore, Helena Zubkow, Marc Drummond, and Mike Herchel open up and discuss a project they have launched: The Front-End Rapport.
This week we have a ton of new tutorials for you to enjoy. We're very happy to bring back our friends from KnpUniversity to provide a great little series on the Twig templating system, and we're also wrapping up the entire O'Reilly Using Drupal book series with the final tutorials.
Release Day: More Twig Tutorials
Blog postThis week, Leanna Pelham of KnpUniversity continues to show you how to become a Twig expert by demonstrating Twig goodies such as template inheritance, functions, tests, for and if syntax, debugging techniques, macros, and other advanced tips and tricks. Each lesson is a bite sized tutorial and includes downloadable site code that will get you up and running with Twig without getting overwhelmed.
Today we kick off a new series design to get you started with responsive web design in Drupal. We'll take a fictitious site to use as our case study, The Anytown Farmers Market. This site was built using the Drupal theme, 960 Robots, a theme based on a 960px grid and designed for the desktop. (You might recognize this theme from our series on theming).
Drupal 8 Core, Now with More Fields
Blog postOne of the the things I like most about Drupal 8 as a site builder is how quickly you can get up and running on creating a new site. Although the installer takes a tad (insert jokes here) longer than Drupal 7, you get so much more out of the box. No need to install Drupal and head to Drush to download/enable a handful of modules just to get your site ready. For example, just to get something like an email field was yet another download. Of course, there is Views in core, but another great thing is a much larger plethora of field types. Now in Drupal 8 there are a handful of useful fields in core:
Our latest podcast, Episode 52: Drupal Community Leadership, has Addi joined by Larry Garfield (Crell), Greg Dunlap (heyrocker), and Gábor Hojsty (Gábor Hojsty); three people who have
We recently completed making updates to our incident response plan for Drupalize.Me and I wanted to share some of what we learned along the way, and help you write your own. An incident response plan is all about being prepared. So that in the moment, under pressure, when everything that could possibly go wrong is going wrong, you can remain calm, cool, and level-headed. If you've ever had to write a social media message, or respond to a support request during an un-planned site outage you know how easy it can be to misstep—even if your intentions are good.
Today, we're releasing the next installment of our series, Getting Started with Responsive Web Design in Drupal with me, your hostess, Amber Himes Matz. Up until this point, we've been focusing on making our site's layout more flexible and ensuring that our typography is expressed in relative units, not pixels. Now, we'll explore a newer feature of CSS that enables us to create blocks of CSS that apply under certain conditions, called media queries. We'll learn about viewport meta tags, breakpoints, flexible images and video, and a Drupal contributed module that provides mobile-friendly navigation.
So far from PHP for Beginners, Part 1 and PHP For Beginners, Part 2, we have a basic site that uses a JSON file to create a list of pets in our store. Now in PHP for Beginners, Part 3, we're going to dive into the world of databases and PHP. We'll get an overview of working with MySQL databases and how to connect them with a PHP-based site.
Happy Release Day! Today we are wrapping up the Getting Started with Responsive Web Design in Drupal series. We're going to look at a responsive Views-based slideshow plugin based on the Flexslider Javascript library and refactor our Views Slideshow with Flexslider instead. Then, we're going to tackle a variety of "clean-up" tasks. It's all about the details, right? First, we'll update the styles of our search form so that it doesn't break out of its sidebar region. Next, we'll take a critical look at our header and navigation content on a mobile-sized screen and make room for more important content as well as update the styles of our responsive menu provided by a contributed module to better match our site's design. Finally, we'll look at an option for making our content contained in an HTML table more reader-friendly on smaller, but important, devices. We'll also address a problem of up-scaled images and have a bit more fun with media queries.
Podcast Episode 53: Coding in Schools
Blog postGetting coding into the curriculum in Minnetonka Schools