Blog
When creating a Drupal 8 or 9 project using the drupal/recommended-project composer template, you may notice during certain Composer commands that the scaffolding files are copied from an "assets" directory inside the Drupal core directory to their correct place in the codebase. But did you know that the plugin that...
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...
With the global crisis establishing digital transformation as an inevitable strategy, many companies are now being forced to digitize their operations, or suddenly need to dedicate everything they have to streamline their digital transformation. Because of all this, we are also seeing an increasing demand for services provided by digital...
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...
In news that nobody expected (I don't know if anyone expects this news or not) it turns out that Drupal 7 will continue to be supported in security updates for one more year, until 2022. What is the reason? Apparently to give more time to those who have Drupal 7...
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()...
You can add users to more than one group in Linux, allowing you to assign permissions to files per group. For example, to be able to use administrative programs in Ubuntu a user must be part of the sudo group. CREATING A NEW GROUP If you want to create a...
This is a useful module to make a quick development of simple modules. Link to the project page: https://www.drupal.org/project/module_builder It is recommended for novice people who are not used to program Drupal modules. It is also recommended for expert people, who can use this module to save repetitive work by...
In some cases it is necessary to move a module already installed in Drupal to another directory. To give some examples: You want to have all modules that have some patch applied in a separate directory to facilitate future maintenance.You want to move a custom module that you put by...
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...
Have Any Project in Mind?
If you want to automate your business or do something with Drupal, let's talk.
AI automation, consulting, development or Drupal website maintenance.