Deeson Labs

RSS Feed
  • January31

    Accessing field data in code for Drupal 7

    Posted by John Ennew on Tuesday, 31 January 2012 at 4pm

    There are a number of ways to access the data stored in a field attached to an entity in code. This blog post demonstrates some of the possible ways using the core functionality and the new Entity API

    Read the full post »

  • January19

    How to centre align text or content vertically with CSS

    Posted by Alli Price on Thursday, 19 January 2012 at 9am

    The above has long been a slightly confusing point since the dawn of the semantic web, when designers and developers moved away from using table elements. If you Google the above, you'll get a mixture of answers, ranging from absolute positioning to negative margins and use of line height. Yet, the simplest answer lies in the past. For a variable amount of text that you want to centre vertically and horizontally, you can use display: table-cell and vertical-align: middle...

    Read the full post »

  • October28

    Pure CSS Druplicon...

    Posted by Graeme Blackwood on Friday, 28 October 2011 at 1pm

    With all the hype around logos in pure CSS at the moment, I thought I would join in the fun and recreate the Druplicon in CSS.

    Read the full post »

  • September23

    Advanced CTools - Run a CTools Javascript call at any time

    Posted by John Ennew on Friday, 23 September 2011 at 12pm

    CTools is a widely used Drupal API module which provides functional frameworks for modules such as Views, Panels, Context and more. In addition to its many uses, it has great JavaScript capabilities.

    Tutorials on the web only tend to describe how to fire off a CTools AJAX call when clicking on a link. What we will show you is how to fire off a CTools call on other events, such as on page load.

    To do this, you will need to create a custom module; our code assumes you've called your module 'mymodule'…

    Read the full post »

  • August17

    Creating an extra tab for a content type, like View and Edit.

    Posted by Alli Price on Wednesday, 17 August 2011 at 9am

    On a recent project, we implemented a new content type on an existing Drupal site. One of the requirements of this content type was to allow a high level of user interaction, but also give detailed reporting per-node.

    To give access to reports per node we added in our own custom tab, we followed the example of node and webform to give the result we wanted. Here’s how you do it…

    Read the full post »

  • June16

    Agile my Basecamp

    Posted by John Ennew on Thursday, 16 June 2011 at 12pm

    Basecamp (http://basecamphq.com) is a great tool for project management and we use it extensively. One of its tools is the ability to specify tasks (called to dos) and order those to dos into lists. Though you can set a required by date for a task, what it is missing is the ability to assign an effort value to those tasks and then provide the sum total effort of all tasks in a list. If you are on an agile team, then knowing the relative size of a task and the sum total of a group of tasks helps when planning the work to be performed in an upcoming iteration (sprint) or the total effort remaining in the backlog of tasks. At Deeson, we thought it would be a good idea to have this functionality so we added it via a custom script for the Firefox Greasemonkey plugin.

    Read the full post »