Back to top


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.

Published in Drupal.

Flags/Bookmarks configuration in Drupal 8

Bookmark content–Flag module in Drupal 8

Flags are as useful as ever in Drupal 8. This article lists the most common configuration steps to get the complete Bookmarks Flags feature set in your Drupal site.

Published in Drupal.

Drupal theme style elements–check-list

Drupal messages–Status, Warning and Error

Not every Drupal project will have all the Drupal-specific elements, but it's good to go through the check-list and make sure you haven't missed any elements to style when creating a new Drupal theme.

Published in Drupal.

Awesome width-adjusting buttons with CSS

Box shadows do scale proportionately if set in font-based units

Rigid boxiness of HTML/CSS can be very frustrating. Often we want objects to have more unique mixtures of block and inline properties than display values block, inline or inline-block can give us.

Published in CSS.

Fast and easy typing—special characters

Croatian keyboard layout

Out of all the different ways to type special characters that aren't easily accessible through your keyboard I found the slickest way is to add a different language layout to your Keyboard settings and a shortcut that easily switches between different Keyboard layouts.

For those who use Gnome and don't mind sacrificing one of their modifier keys (if they're not using it often or ever') they can use Compose key setting.

Published in Computer Basics.