Blogs

Mixed Inline and header defined ad units

I thought I would share my experience of trying to implement both the header definition style alongside the inline definition style, so that I could allow editorial staff to choose whether or not to place adverts in the body of an article.

Postscribe for ad delivery

This slideshow suggests that its benefits include: It is possible to load ads after a full page load including in an ajax call.

I think it may also be possible to include a layer of security into the ad delivery essentially we can strip out any js we don't want to be introduced into the site e.g. removing document.writes.

Google tag manager may be useful after all to a developer wishing to open up the ability for ad teams to insert their own ads, without giving full backend access.

Designing systems not pages

Having been through the re-development process quite recently I have walked away with the notion that it could have been done better. Not that the design could have been better or that the build could have been done better, but the process could have been easier. Communication could have been more fluid and guesswork and follow up discussions could have been reduced if the transfer of ideas had been more robust.

Responsive DFP ads

I liked the implementation in this blog post about how to define DFP ads based on the browser window size, its an interesting read, but the part that caught my attention was titled "Showing / Hiding Ad Slots Without CSS" were ads are only defined if the window width is within a certain size during page load.

It would mean that the different advert sizes would probably need to be set up in DFP, but once set up they would only be called by the appropriate device.

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:

Pages

Subscribe to RSS - blogs