Drupal Development

My name is Reinis Fischer, I'm a Drupal developer from Tbilisi, Georgia with 7+ year experience building web projects and mobile apps for small and medium business. Contact me for your next Drupal development task, or read some Drupal related blog posts bellow.

How To Reference Nodes in Drupal 8 + Views Relationships Display

Lately I feel very enthusiastic working with latest Drupal 8 release, though Drupal 8 have been around for a while already, there are still few drawbacks which keeps me avoiding developing full scale on Drupal 8. I will write down my notes of pros and cons about switching from Drupal 7 to Drupal 8 in some of the future posts, in today's Drupal tutorial series I will provide information how to use reference fields and build something awesome, as usual I will use a live example. We are...

Drupal 8 Custom Taxonomy Term Pages with Views

By default, out of the box, Drupal taxonomy term pages are styled kind of ugly, but with help of just a few simple tweaks we could style them as we wish, just by using CSS. In today's Drupal tutorial series, I will provide simple how to on how to create custom Drupal 8 taxonomy term pages using views. Luckily, you won't need to install any additional modules, as in Drupal 8, views are already built in core, and if you are already familiar with how to style taxonomy term pages in Drupal 7...

EU Cookie Compliance For Drupal 8 Website

I'm not an expert in EU laws, but as far as I remember since 2012 there have been passed a law, so called EU Cookie Compliance law, asking website located in the territory of European Union to provide cookie disclaimer to website visitors if any cookie installed on website.  To play safe, I have enabled cookie information bar on my blog (you can see it in the bottom of each page) As, recently I started Drupal 8 development on .eu domain website, which actually is hosted from EU...

How to create related content block using taxonomy term in Drupal 8

There is no secret that related content can help to improve over all page views for website. More page views means more engaged website visitors, resulting in more sales and higher profit. In today's Drupal tutorial I will write how to make related content block using taxonomy term field in Drupal 8. For Drupal 7 tutorial see: Related nodes based on taxonomy terms In short, if you are already familiar how to create related content block in Drupal 7, there is no huge difference in...

Facebook Like & Share Buttons on Drupal 8 using Views

In this tutorial you will learn how to setup custom Facebook like & share buttons for Drupal 8 website using views display. No doubt, there are many great modules set and forget configuration. Though if you are looking to display functional social share buttons on views based pages, you will need to come out with custom solution.  There are many pages and even blocks in Drupal social share buttons to be featured, like custom blocks, taxonomy pages, custom pages and so on. For...

How To Add Open Graph Protocol For Drupal 8 Website

In today's Drupal tutorial series I will write down my notes, how to add open graph protocol for Drupal 8 website.  The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook. While many different technologies and schemas exist and could be combined together, there isn't a single technology which provides enough information to...

How To Setup Web Push Notifications For Drupal 8 (Or Any Other Site) Using OneSignal

Web push notifications are hot in 2017, we will see them more in future for sure. I've been using web push notifications for my personal blog and from what I've seen - it's very powerful marketing tool, allowing you to reach your audience very fast - for blogs and websites that means more returning visitors, for commerce sites that definitely means more sales. In the past I've tried a few web push notifications providers, but at the end I've chose to stay with onesignal.com, because of it's...

How To Override Drupal 8 Frontpage Title

Recently I've started a new Drupal 8 website for a personal project tour listings in Georgia.  As I've been a core Drupal 7 user since 2011, Drupal 8 involves a new learning curve even for me. In this short article I will provide a quick setup how to override Drupal's 8 frontpage title tag using metatag module In general frontpage of your website should include main keywords for SEO, by default Drupal 8 shows Home | [site:name], which is not very SEO friendly in fact, as...

How To Insert Node Reference in Content Using Views

I this article I'll cover some details on how to programmatically reference nodes in content using Drupal views. Such behavior I've already implemented in this blog, see for example 83 reasons to Visit Georgia This year article to see it in action. Today I was working on one of my side projects - a laptop buying guide - laptop500.com and decided to implement a new feature - best selling items of the month, by programmatically referencing laptops (nodes) from archive. Here is how -...

How To Remove HTML Elements From Drupal 7 Feed

In this article you will learn how to style RSS feed in Drupal 7 (not sure, but most bellow written should apply to Drupal 8 as well) I'm using RSS feeds to power up e-mail newsletters, see How To Sync Drupal RSS Feed to Mailchimp, and everything would be fine, except I had to stop automated email marketing because of amazon affiliate links included in feeds, which is against Amazon Associates TOS.  If you are sending out RSS feeds via email and you are not concerned breaching...

Speed Up Drupal site by 76% Using Image Lazyloader

In this article you will learn how I managed to increase load times for a Drupal powered site (the one you are currently reading) by more than 76%. Now the following tip will apply for Drupal sites heavily loaded with images. My website, which is now more than 3 years old,  features about 80% of photo stories, over the time, I have tried to limit my picture articles to 3 or less images, posting online the best of my work, but yes, there are articles with even 136 pictures, see...

How To Build a Drupal List Page With All Users

In today's Drupal tutorial series I'm going to show a simple way how to build an authors page listing all users with their profile information + some other neat features. A few years ago I was working on a Drupal project for large media organization and I was required to build an extended user profile system on Drupal. Recently I hired few freelance writers for my own blog / website and idea of having a nice author overview page sounded a must have.   The further written can be...

How to Install & Config Drupal 8 on Ubuntu 14.04 + Ngnix

In this article I will provide information how to install latest Drupal 8 version on Ubuntu 14.04 machine with Nginx. Tools involved: Putty, Notepad++ I assume you have already configured Nginx on your machine, if not, here is a tutorial for LEMP Server Ubuntu 12.04 for serving Drupal on Nginx, don't be afraid of version 12.04, as in version 14.04 the only differences that might occur are in Ngnix config blocks, which I will cover in this article. If you are looking for a great VPS...

Theming Drupal 8: How to Hide Site Name

I'm starting a new Drupal series - Drupal Tuesday, from now on - every Tuesday, Drupal related articles will be featured on my blog.(at least I hope so)  It's not that I wouldn't had any previous Drupal tips and tricks, In fact I have more than 100 Drupal related articles already in archive. Just recently I started working with Drupal 8, and since it involves a new learning curve even for me - I decided to refresh my skills and write down notes. Let's start with a really simple...

How To Setup Pretty URL's For Drupal 8

It seems just yesterday I wrapped a simple Drupal tutorial on how to enable pretty URL's for Drupal 7 site. Turns out already three years have passed. Time flies, newer versions of Drupal emerges, but the question remains pretty popular. I could point you to the previous article, but things have changed a little bit in Drupal 8, thus the principles stays the same. Today I will provide a simple tutorial on how some (perhaps you) can enable pretty URL's for Drupal 8 site.  One of the most...

Theming Drupal 8: How To Include the Facebook JavaScript SDK

That time have come - and I have started to officially develop my first Drupal 8 site - I won't go into details by comparing Drupal 8 vs Drupal 7 or Drupal 6 (as I think that's a topic for another article). Today I will show how one (perhaps you) can include default Facebook JavaScript SDK library to your Drupal 8 site. I'm working on simple business website, which has a Facebook business page, and we want to include Facebook page plugin into site's sidebar. For getting actual code, you must...

How to List Related Tags on Drupal Taxonomy Pages Using Views

Make sure you check out my previous article How to List Drupal Child Terms on Taxonomy Pages with Views as today I will extend a little bit my previous tutorial and at the end we will add related tags on taxonomy pages using views. Tools (modules) you will need: Views module and taxonomy module enabled. Here is the print screen: Listing related tags on Drupal taxonomy page Or see live example at Drupal development (or any tag on this blog) This will work with simple one taxonomy per...

How To Sync Drupal RSS Feed to Mailchimp

RSS is not dead, it's more than alive - nowadays it's used to sync content across services and devices. After finishing installing push notifications for my blog I decided to re-check my e-mail marketing strategy. Wow, it's hard to compare actually - I got about 200 push notifications subscribers in less than 3 days, while my attempts of collecting e-mails turned out to be more gloomy  - about 60 subscribers in 3 months (after which I stopped to collect e-mail addresses at all). Not...

How to List Drupal Child Terms on Taxonomy Pages with Views

I spent a good amount of time at Monday's evening to actually figure this out. In today's Drupal Tutorial - How to List Drupal Child Terms on Taxonomy Pages with Views. This issue has been on my table for about two years. For the ease of this tutorial - here is basic setup. For a content type blog I have created pre-defined vocabulary - Category. Most of the category items are not related and are in linear format. But few of them are related and I have listed them as child terms...

How To Setup Web Push Notifications for Drupal or Any Site using PushEngage

Push Notifications seems are hot and worth to invest trend nowadays. I have seen them around for about last 6 months in blogs, portals and other websites.   In fact I have always chose to block them, when popped in my Chrome Browser, as I think they might be annoying. On the other hand as a blogger with pretty solid audience (more than 55,000 unique monthly users) I have wandered maybe it's worth to explore them more and implement on my blog?! As I see it now - web push notifications...

How To Embed Facebook Posts into Drupal CMS

OK, I just need to finish this article as it has been in drafts section since November 2013 (Have no clue why I haven't finished it for so long). It's a good idea to finish your drafts once in a while. I believe embedding a Facebook post is not the most desired feature (Twitter status might be), at least I haven't found many embedded Facebook posts around, but that doesn't mean, you cannot embed one. Bellow is an example for one of my Facebook posts embedded in Drupal using simplest way -...

Drupal 7.50 introduces User warning messages for incorectly removed modules

The other day I did perform a minor upgrade from Drupal 7.43 to Drupal 7.50, and was a bit scarred when noticed a huge warning page, at first I thought there are some problems with my files and folders or I have done something terribly wrong. Thus I learnt that this is a new feature, implemented starting Drupal 7.50 version Drupal user warning User warning: The following module is missing from the file system:Module Name. In order to fix this, put the module back in its original location....

How to Fix Missing MarkeClusterer Icons for Drupal Gmap Module

I have been using Drupal + Mapping for years already. My most favorite combination Location + Gmap module for entering and displaying location info.  Recently I did upgrade for Gmap module for this blog and things went wrong - customized province names disappeared and... Marker Clusterer icons were gone soon afterwards. My first thoughts were that latest Gmap module have done something wrong, turned out I was wrong. My next idea was it's related to Advanced Aggregation module - again...

Drupal Patch For Location Module To Update Province List for Latvia With Latest Data

Made a simple Drupal patch for Location module to display latest administrative divisions of Latvia. Default one is still showing outdated data using old "Rayon" as administrative divisions of Latvia. Will try to submit this patch to official module release on Drupal.orf From Wikipedia:   According to the Administrative territorial reform of Latvia (2009), Latvia changed its administrative divisions from two-level municipalities (the districts ...