Skip to main content

Pasan Gamage

Drupal Developer

Location

Sydney

PHP developer with recent exposure to Drupal, coming from Wordpress.

My blog posts

Bare Templates: Removing Unnecessary Markup in Twig files

by Pasan Gamage /

In most of the projects we build, the HTML markup provided by core just gets in the way. There is way too many wrapper divs. This can cause issues when trying to create lean markup that matches what is produced in a generated styleguide.

In this post, I'll introduce you to the concept of bare templates, and how you can remove unnecessary markup from your Twig templates.

Read the full post

Creating a custom LinkIt matcher plugin

by Pasan Gamage /

In one of our recent projects, our client made a request to use LinkIt module to insert file links to content from the group module.  However, with the added distinction of making sure that only content that is in the same group as the content they are editing is suggested in the matches.

Here’s how we did it.

Read the full post

Intro to Cherry Picking with Git

by Pasan Gamage /

When you are working with a team of developers on a medium to large sized project, managing the changes between a number of git branches can become a complex task. Sometimes you don't want to merge a whole branch into another, and only need to pick one or two specific commits. This process is called 'cherry picking'.

Read the full post

Introduction to Drupal Patch Files

by Pasan Gamage /

I recently joined PreviousNext and was soon getting acquainted with contributing to Drupal core and contrib projects. A big part of the contribution workflow is working with patch files in the issue queue, so I wrote this post to help anyone who wants to know about patching in Drupal.

Read the full post

Pagination