Drupal 9
I just came across the case that I need to remove several fields from a content type in a Drupal 9. Those are simple to do, aren't they? On your site use the Drupal user interface, delete the fields and export the configuration. Then on the production site import the...
Two security alerts for Drupal 9 have been released yesterday, April 20, 2022. SA-CORE-2022-008 (moderately critical) https://www.drupal.org/sa-core-2022-008 Basically it is a bug that allows to skip validation in Drupal forms. This means that it affects most Drupal websites, since most websites have some form accessible by users. You should upgrade...
I have already had this problem several times. So I'm going to write it down here for future cases that may arise. In my current case I'm upgrading a Drupal 8 to Drupal 9, that website has been created WITHOUT composer (moreover, it doesn't even have GIT, they still work...
The third version of Drupal 9 has been available for 1 month now. New features and improvements in Drupal 9.3 include: The new Olivero UI theme that was added in Drupal 9.1.0 is now stable.A new experimental beta module CKEditor 5 is included with Drupal 9.3.0 primarily for development purposes...
For those who do not know, today November 2, support for Drupal 8 has ended.For some time now, the Drupal community has been warning you to upgrade to Drupal 9, which is a painless upgrade with multiple benefits. Ver: https://www.drupal.org/psa-2021-2021-06-29 As of this November, any Drupal 8 website is potentially...
Drupal 9 is finally here. The big question within the Drupal world as we enter this new phase in the evolution of my favourite CMS: Now what? In an environment of Covid-19 quarantines and stay-at-home orders, websites are relied upon to do more heavy lifting than ever before. I'm passionate...
Drupal 8 dramatically improved the capabilities for creating multilingual websites. The content translation was moved to the core and an improved architecture made it much easier to internationalize complex sites. However, the language switcher could use some improvements. Here's how we customized it. As a digital agency with Catalan origins...
As ever-evolving Drupal developers, we've been in the process of moving towards a Composer-based workflow for managing our Drupal project code bases. While it is (usually) an easy leap to move from "drush dl" to "composer require" for Drupal contributed modules and themes, there is another significant opportunity for us...
Doing this for a particular order is pretty straightforward. All you need to have is the ID of the coupon code: // This is the ID of the coupon code you want to add to the order. $coupon_id = 1; /** @var \Drupal\commerce_order\Entity\OrderInterface $order */ $order = \Drupal\commerce_order\Entity\Order::load(1); $order->get('coupons')->appendItem($coupon_id); $order->save()...
The "Migrate" module in the core is one of my favourite parts of Drupal 8 and 9. It's super flexible and makes migrating content from any source you can imagine pretty easy. Today I want to show a trick I use when I receive a csv (or excel file) from...
Pagination
Have Any Project in Mind?
If you want to do something in Drupal maybe you can hire me.
Either for consulting, development or maintenance of Drupal websites.