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

Mario Hernandez: Five principles for building better components

When working on a component-based project, building components or patterns, can be a liberating experience because we are able to draft the best markup possible to build the most flexible, scalable and reusable components. If you work with third party platforms such as SharePoint, WordPress, Drupal, or others, this becomes…

Continue ReadingMario Hernandez: Five principles for building better components