Deck Fifty Design Blog: Drupal

17
Apr

Drupal Subscriptions Module - Referenced Nodes

written by Shane Graham
The Drupal Subscriptions module notifies users on certain events. Usually when a new piece of content has been either saved or updated. Users can subscribe to specific nodes, terms or entire content types allowing them to keep up with the changes on the site. It's a great module. This starts to break down however, when node references enter the picture. One of our recent Drupal 6 intranet projects required this feature and a custom solution had to be explored. The solution turned out to be pretty simple thanks to a extremely useful hook supplied in the Subscriptions module. In this example,...
26
Nov

Drupal Form API - Conditional Fields

written by Shane Graham
In a previous Drupal developer blog post, I discussed leveraging Ajax with Drupal's Form API. In this post we'll cover an alternative method in displaying dynamic content to your user - using Drupal's form states (conditional fields). Using form states is really quite simple. It's just a Drupal Form API attribute and is used to display any kind of form content conditionally (conditional form fields). Commonly, a user may have some option, like a select list and different form fields may hide or show (using jQuery) based on the user's selection (often times referred to as dependent dropdowns...
28
Oct

Rendering Drupal Views in code

written by Shane Graham
Having a query builder like Views at your fingertips is fantastic on so many levels. I'm not going to get into my deep and semi-weird love affair with Views at this point in time, but I will show you how to programmatically display your Views display in code. This can be useful in a custom module, perhaps in a hook_node_view or maybe in one of your node or page templates. In this example I'll add my View to my blog nodes. I'll just append my View to the bottom of the blog content. We'll want to use the views_embed_view() function to render our desired View display. /** * Implementation of...
24
Sep

Drupal Form API - Using Ajax

written by Shane Graham
I love Drupal's Form API. In just about every project we are either modifying or creating custom forms and thankfully, Drupal's Form API makes executing these tasks a fairly easy process. Everybody loves Ajax so in this tutorial we'll combine these two bits of awesomeness to produce some custom 'ajaxified' forms. Lets start out with a hook_menu so we have a nice page for our example form. You'll see the "page callback" is the function "drupal_get_form" and our "page argument" is our function that will simply return our associative array. /** * Implements hook_menu(). */ function...
17
Aug

Embedded Twitter feed in Drupal 7 using the Twitter Pull module

written by Shane Vincent
There are many Twitter modules for Drupal out there and I've gone through them all. Twitter pull does the job perfectly. It's not a surprise to anyone how huge social media is nowadays. If you have a website you should have some degree of social media integration, be it a simple link to your Twitter, Facebook or LinkedIn profiles, or a full blown embedded feed of your posts and tweets. A lot of clients these days are requesting embedded Twitter feeds, much like the one we employ in our footer. Below are the steps needed to add a twitter feed to your Drupal 7 website. First, download and...

What our clients say...

I cannot say enough about Deck Fifty Design's support and creativity in re-designing my website. The framework they designed reflected my interest in having a professional, clean and user-friendly website. Their training and guidance regarding Drupal has given me the tools and knowledge to create and update my website whenever and however I choose. They are consistently approachable, accessible and readily available - whenever I have questions or concerns, they are "right there". I highly recommend Deck Fifty Design - you won't be disappointed.

Marli F. Rusen Law Corporation