Mario Hernandez: Building an automated DDEV-based Drupal environment

A successful training experience begins before we step foot in the training room. Or, in these days of distance learning, it begins before students login to your training platform. The challenge is having an environment that is easy for students to setup and provides all the tooling required for the…

Continue ReadingMario Hernandez: Building an automated DDEV-based Drupal environment

Mario Hernandez: Building a Drupal Theme with the Theme Generator

On one of my last training workshops I took a chance and decided to let students pick their environment of choice to use during training. As always I hosted an online call prior to training to assist anyone who needed help setting up their environment. About five of the students…

Continue ReadingMario Hernandez: Building a Drupal Theme with the Theme Generator

Mario Hernandez: Handling Drupal attributes in components

In Drupal's twig templates you'll often see an attributes variable being output within the template. This variable is how core and contrib modules inject their CSS classes, an ID, or data attributes onto template markup. You'll also find title_prefix and title_suffix variables. These are used by core and contrib modules…

Continue ReadingMario Hernandez: Handling Drupal attributes in components

Mario Hernandez: Flexible Headings with Twig

Proper use of headings h1-h6 in your project presents many advantages incuding semantic markup, better SEO ranking and better accesibility. Updated April 3, 2020 Building websites using the component based approach presents all kinds of advantages over the traditional page building approach. Today I’m going to show how to create…

Continue ReadingMario Hernandez: Flexible Headings with Twig