How to work with Twig Templates in Drupal?

In this article, we are going to see how a developer can work with Twig templates, and how to override templates (if needed) and create template suggestions with hooks, so that templates could be easily managed. Basically drupal allows people to override the existing twig templates, so that people can fully have control on the html generated via the custom theme. First thing, we need to make sure we override

Read More

Hell is Programming a Calendar (Part 2 – Time in Drupal)

​Welcome to part two of Hell is Programming a Calendar, where I will dive into some of the more nitty-gritty details about handling time specifically in Drupal. If you haven’t already, I highly recommend checking out part one where I explain why time, in a more general programming sense, is so complicated in the first place. Anatomy of a date field Let’s start by breaking down Drupal’s core date field

Read More

Setting up Facebook Open Graph and Twitter Card meta tags in Drupal

Social shares can significantly increase your brand exposure, expand your reach, boost your website traffic, and benefit your SEO. Of course, all this works much better if your shared content looks attractive, relevant, and well-formatted on social media.  Content preview snippets are built automatically when someone shares a link on Facebook, Twitter, LinkedIn, and so on. They include a title, a description, an image, or other details. Can you control

Read More

Code of Conduct team update: June 15, 2022

As previously reported, the Community Health Team has started to have regular, bi-weekly meetings in an effort to develop and update the Code of Conduct for the Drupal community. Community Health Team members present at this week’s meeting were The main goal for this meeting was to get status updates from all tasks discussed at the previous meeting in an effort to better understand the Code of Conduct landscape in

Read More

Updated security policy for Drupal core Composer dependencies – PSA-2022-06-20

In Drupal 9.4 and higher, drupal/core-recommended allows patch-level vendor updates The drupal/core-recommended metapackage now allows patch-level updates for Composer dependencies. This means that site owners using drupal/core-recommended can now install most Composer dependency security updates themselves, without needing to wait for an upstream release of Drupal core that updates the affected package. For example, in the future, a Guzzle vendor update like the recent Guzzle security release can be installed

Read More

Drupal 9: Removing Base64 Encoded Files From Content

Occasionally, I have come across Drupal sites that have base64 encoded images embedded into content fields. This is the approach of taking the binary data contained in a file and converting it into a string of characters. The original binary data can then be re-created using this string and the data is understood by lots of different technologies (including web browsers). Whilst this is technically possible, it massively balloons the

Read More

Camp Debrief: Stanford WebCamp 2022

This is the first in a series of “Camp Debriefs” by the Drupal Event Organizer Working Group. In this debrief, Fei Lauren (feilauren) interviews Irina Zaks (irinaz) about Stanford WebCamp 2022. If you would like your Drupal event to be featured in a Camp Debrief, contact the EOWG. Irina first got involved with Drupal around 2006. After attending BADcamp in 2007, she decided the South Bay Area needed their own camp and

Read More

Drupal 9.4 installation with existing configuration fails because “unable to uninstall the MySQL module”!?

Here is how to deal with the surprising-to-impossible-seeming error “Unable to uninstall the MySQL module because: The module ‘MySQL’ is providing the database driver ‘mysql’..” Like, why is it trying to uninstall anything when you are installing? Well, it is because you are installing with existing configuration— and your configuration is out-of-date. This same problem will happen on configuration import on a Drupal website, too. Really this error message is

Read More

The New Olivero Theme – Awesome to the Core

A group of Lullabots (and Former ‘bot and podcast co-host Mike Herchel) get together to discuss the new Default theme in Drupal 9 and 10 that they helped build. The theme called “Olivero” is as beautiful as it is flexible and accessible. The team talks about the immense amount of work it took for a project of such high visibility in the Drupal community. Source link

Read More

Drupal 9.4 release. What’s new in this version?

The new, major Drupal update was released on 15 June 2022. There are some new elements and changes, such as the Manage permissions tab, dynamic determination of the minimum PHP version, changes in the API, change of the default frontend theme from Bartik to Olivero, and the administrative theme from Seven to Claro. Quite a few functions and libraries have been labeled “deprecated”. We’ll talk more about these and other

Read More