gareth's blog

EntityFieldQuery stopped working for non-logged in users

I have a block that displays data from various nodes. It does calculations based on a few fields that exist in these ndes.

Recently it stopped displaying for everyone except user 1.

Simple solution was to make sure my EntityFieldQuery was run using the user 1 account by adding MetaData to the query.

I found this in the Drupal.org docs, but I must admit its been a while since I've had to check it out and I think it has been added since

Dopl test page

The Drupal.org project link filter is a tiny, yet useful module, which adds a filter, to facilitate linking to Drupal.org projects.

Lots of us blog about Drupal projects, or mention them in our forum discussions. Linking to a Drupal project, each time it is mentioned is a bit of a pain. This filter lets you write something like "views. module", and it generates a link to views module page (http://drupal.org/project/views).

Star Wars and Disney, my take on it.

I feel I should state for record my point of view on the whole Star Wars Disney thing, no idea why but there is a lot of ranting going on and I want in.

I am actually relatively happy about this Merger. Star Wars and Disney have had links for a while, in that The Disney Parks have a rubbishy Star Wars ride and you can buy most of the Star Wars stuff in all the Disney shops. In the worst case scenario we get a better ride at Disney than the current simulator thing surrounded by a load of props, so we're off to a winner sraight off.

Drupal 7 Webform Cookbook by Vernon Denny

Image of Drupal 7 Webform Cookbook

Being a developer I must say that I don't often resort to using the webform module, preferring to hand code any forms that are needed on a site, however a collegue of mine recommended using webform to create the form and using hook_form_alter to add in my own validation, submission handlers and other custom functionality, which I thought made a lot of sense.

Drupal 7 Development by Example, Beginner's Guide by Kurt Madel

Image of Drupal 7 Development by Example Beginner's Guide

Having just finished a read through of Drupal 7 Development by Example Beginner's Guide (http://link.packtpub.com/K0y3L9), my first impressions are very good. The author takes quite a holistic approach to some of the more advanced techniques required during a site build and walks through them in a methodical and easy to follow manner.

Helping out with Drupal Accessibility

While a coder may not have a great deal of time or indeed the answer to any of the accessibility problems encountered in using Drupal, there are still numerous ways that some minor coding skills can used to massively help out with the accessibility of Drupal.

While this is written specifically with Accessibility in mind the skills are very transferrable and can be used for any initiative you may want to help out with.

Most new development is happening in Drupal 8 at the moment so you will need to get the latest version of that first:

Boldy Theme Live Preview setup instructions

CAVEAT EMPTOR
This is a very rough start to the setup instructions, more will be added as I progress and full english will be added rather than the rough notes that exist at present

Site Demo

There is a demo site available to see how this theme looks in comparison to the site5 version, it can be found at:
http://boldy.dev.garethalexander.co.uk or http://boldy.d7.garethalexander.co.uk

How I spent my leaving gift from Ambergreen

As a leaving gift from Ambergreen, I received a rather tasty £40 Amazon gift voucher, which was promptly spent on a whole bunch of CD's, so you can expect another round of reviews. Although, I'm not really sure what I am doing here can really be called a review, as I there is high possibility that I already know they are they are well worth parting with the crinkle paper for, thanks to Spotify and Last.fm

Git Workflow - An Update

Now that Drupal have moved from CVS to the git versioning system, I realised that my github workflow can get even more of a workout and is doubly useful to me as I can now use it for Drupal contributions as well. The previous workflow is here: Github Workflow.

There are only a couple of differences between using Drupal's git and github.

Christmas Present - Amon Amarth - Twilight Of The Thunder God

Image of Twilight Of The Thunder God

The title track is brilliant and was in my spotify playlist till the album got removed (by metalblade I can only presume), as was "Guardians Of Asgaard", both excellent tracks and powerful examples of Amon Amarths crushing style. Still on spotify are "Once sent from the Golden Hall" and "The Avenger".

Pages

Subscribe to RSS - gareth's blog