Wrights HQ

A blog by Ian Wright - Front-end web developer


10% time – Drupal developer diary: Creating our module (part 2)

This post in a continuation post from Creating our module (part 1) and this time I’m going to explain how I built out the help and configuration pages. To me these two section are very important to a module. The help page may not be used by many developers as all modules tend to come with […]

10% time – Drupal developer diary: Creating our module (part 1)

To create my Drupal 8 module I setup the required files & folder structure. In Drupal 7 you would require a .info & .module file. Now in Drupal 8 the only required file is the .info equivalent modulename.info.yml which contains similar information about the module. All modules which are install in Drupal 8 go into the following […]

Understanding Twig in Drupal 8

I have built multiple sites within Drupal 8 now, some brochure & a few more complex sites but in all cases of Drupal 8 the front-end theming is achieved with twig. What is twig? Twig is a modern template engine for PHP  Fast: Twig compiles templates down to plain optimized PHP code. The overhead compared to regular PHP […]

10% time – Drupal developer diary: Overview

In Drupal 7 there are loads of different mapping solutions but none of them would achieve all functionality which I required whilst developing sites. This is my developer diary on creating a Drupal 8 mapping field formatter.

10% time – Drupal developer diary introduction

Each week at miggle we get the benefit of 10% time. 10% time is to allow developers expand their learning knowledge on something they think will help increase and benefit their work. For me, I use this time to expand my understanding of Drupal 8. My passion is front-end development and I have done quite a bit of front-end work […]

Using Composer to install packages for your Drupal project

I have recently been working on a lot of Drupal 8 sites and a few modules have had Composer dependencies. When I first looked into how the dependencies worked I always seemed to hit a problem where I didn’t know how dependencies should be installed for Drupal. This is a brain dump of how I […]

Mapping in Drupal 7 with Get Locations

I’ve recently had the challenge of displaying node data on a Google Map, with the ability for the user to switch between satellite view, terrain view & Street View. In this tutorial I will aim to show you how to setup Google Maps in Drupal 7 using the following modules. Get Locations Geofield geoPHP Geofield […]