Back to top


Search multiple Drupal Fields at the same time—Combine fields filter

Combined fields filter in Drupal 8 Views

The easiest way to create a search in Drupal that would automatically search more than one field is through the Combine fields filter in Views. More complex solutions include the Search API module, or Solr framework.

It's not possible to combine just any field with the Combine fields filter, but most of the fields that store content you want searched can. That includes Taxonomy Terms; they can be included in the combined search with the help of Relationships.

Layout Builder—Change Content area layout

Drupal 8 Layout Builder Add Section Four columns

Layout Builder is the new module in Drupal core since the version 8.7. It brings a powerful and easy way for site builders to control the layout of the main content area of a Drupal page.

It is a huge step up for Drupal when competing with website builders for winning Site Editor's favor in taming the confusing coupling of content and its design. Many other features can be built on top of it to create a truly remarkable editors’ and content creators’ experiences.

This article shows what Layout Builder provides out of the box for changing the layout of your page content area.

Where to place Drupal Twig template files

Drupal usually has two active themes

Besides the usual advice to keep the templates in a special templates folder in your (sub)theme it is necessary to know which theme the template should be added to in the first place.

The notion that there are usually two themes active on a Drupal site is often overlooked. This article clarifies which themes are used on which parts of the site.

Install and update Drupal 8 through CLI

Update Drupal 8 Core with Composer CLI

Drush is still alive and kicking in Drupal 8 but the areas of installing Drupal core and contributed modules has been taken over by Composer, the PHP dependency manager. It takes a bit more effort to set up your environment and learn the new Composer ways of Drupal 8, but if Drupal is an important part of your work this is the way to go.

This article lists the common commands used when installing and updating Drupal 8 core through CLI.

Grouping by multiple Fields in Drupal Views

Articles grouped by Custom text in Drupal Views

Grouping in Views is useful when there are many items in the results that share the same value of a field. But often times there is more than one field in common and it's useful to group by all those fields and excluding them from the results so they aren't repeated needlessly.

Custom text field method is the best method to control the output when grouping by multiple fields in Drupal Views.

Install Drupal 8 on Ubuntu 14.04 LTS

Drupal 8 on Ubuntu 14.04 LTS with PHP 7.1

Ubuntu 14.04 LTS was released in April 2014, and its end of life date is April of 2019. To all those who are still using it this gives you roughly 8 months during which an upgrade is to be performed.

In case you want to install Drupal 8 before you get around upgrading the OS you'll have to update some packages because Ubuntu 14.04 doesn't satisfy all the requirements.

User Flags (Follow) in Drupal 8

Follow a user Flag in action—Drupal 8

Flag module can be used to mark users in a Drupal project. Flags can be activated globally (where the flag status is the same for everyone) or personally where each user can control their own flag preference for another user.

The most common use of user Flags is to create lists of Followers. Users can add others to their Interests list, and have Followers who are interested in what they create on the site.

This article shows how to configure a Follow flag and create Views lists of Interests and Followers to be added to user Profile pages.

Recover Drupal MySQL database from raw files

MySQL folder on linux storing data

Accidents happen. Accidents can raid your backup storage, production and other site versions. You can accidentally forget to set up regular backups (ò_ô). Whatever adversity hits you sometimes you have to face the difficult situation of having only raw mysql folder from a hard drive to show for your data, and no healthy database export.

Luckily there is a way to recover the data if you know the steps and you're careful enough. This article documents this process.


Subscribe to Drupal