December 5, 2017
In my younger days I worked in a surf shop where the owner was very hot on customer service. He liked us to greet every customer when they entered and left. To start with this seemed quite unnatural and the odd customer even seemed confused. In general though it did open up communication and people seemed genuinely happy with the interaction even when you said thanks to them for leaving empty handed.
November 28, 2017
When I was younger I wanted to join a football team. I had visions of scoring the winning goal and being the hero. Unfortunately I turned up with a pair of goalkeeper gloves, one of the others on the team decided I must be a goalkeeper then. And that’s the position I played for many years, and I loved it.
Now I’ve been a backend developer for many many yeas and I love that as well.
November 21, 2017
When I started working for Headscape I also started working from home. Our office is a 3 hour drive form where I live so commuting isn’t an option and as a family we were not looking to relocate.
In the past few years I’ve learnt a lot from home working and how to make it work for me and our team. Here are some tips that I have found smooth the process.
November 13, 2017
I was recently asked by a client to produce a report of content posted by day. My first instinct was to query the database for all rows of the particular content type and handle the counting in PHP.
First Idea # Query the database for all rows of content type X Create an array in PHP of days Loop through all rows Use PHP to figure out the day the row was created Increment the array element for that day This seemed pretty inefficient though and felt like something some SQL could handle far better.
November 7, 2017
The web is constantly developing and growing at a fast pace. I often wonder how beginners even know where to start and marvel at their ability to not be daunted by the myriad of options available to today’s developers.
October 31, 2017
To achieve this you will need to implement hook_views_query_alter() in a custom module. I did not do this in Views UI.
A recent project at Headscape required me to build view listing two different content types that would use two different date fields to sort by. For examples I’ll use the default basic page and article content types.
The Problem # Some content types need to be sorted on the node created date and others on the display date field.
October 20, 2017
I’ve been using ReactJS as I have been exploring Headless / Decoupled Drupal and have so far found it to be very nice to work with. However, as I am not overly familar with it I’ve found myself looking up lots of things to ensure I’m doing it “the React way”. This has meant I’ve been doing more React learning than I have Drupal learning.
My solution is to go back to an existing Drupal 7 project where I have a custom piece of search functionality and replicate it using JSON feeds provided by Drupal and a ReactJS frontend.
October 4, 2017
Since then Dries has followed up with a blog post confirming that there will be attempts to include the React Framework in core. Inspird by this I decided to start trying out Headless / Decouple Drupal.
October 4, 2017
The installation of a minimal Drupal setup is very quick and easy. From there I enabled a few modules and a theme to help me create some data.
Modules enabled Field UI Image Views View UI RESTful Web Services I also installed the Devel module to help with dummy content population of my content type Article.
A common function of a website is to list content in an order, newest items or most relevant, and paginate this list.
June 27, 2016
Recently at Headscape we were setting up a new server ready to launch a redesign of a site. Whilst testing we were accessing the site using the server’s IP address which works fine for checking everything is working, apart from when we needed to install the SSL certificate.
The SSL certificate is based on a domain name so going to an IP address causes the SSL certificate to warn of an insecure connection.