Back to top

Drupal

Restore 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 accidentaly 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 restore the data if you know the steps and you're careful enough. This article documents this process.

Sort related content by Relevance (Drupal 8)

Related content sorted by Relevance

Many websites are tagging their content with more than one category term. Listing other content marked with the same term is a very common task in Drupal. But with a multi-valued field storing more than one Category on a single article things are a bit more complicated.

Complexity increases with the request to sort the list by relevancy, showing the most relevant related content on top of the list (the articles that share more of the same tags).

This article lists the steps in Drupal 8 Views to create a list of related content titles sorted by the number of tags shared with the content currently viewed.

Drupal 7 Entity reference tutorial

Entity reference is a Drupal 7 module that provides a field through which another entity can be referenced. Usually one node of a certain type makes a reference to a node of another type through an Entity reference field. For example the node "iPhone 4" of the type "Product" makes a reference to the node "Apple" of the type "Company" through the Entity reference field "Company name".

Choose Views display to format Entity reference field display

Subscribe to Drupal