• farsheed
    Senior Drupal Developer
June 10, 2011
Pushtape is a Drupal-based music publishing project I've been working on. It is currently under active development. Design goals: easily publish a discography with albums and tracks simple admin interface extendable, minimal framework using existing web technologies The project is in its very early stages, but I wanted to share with you how we got here and why I believe building this piece of software is important. The idea of using Drupal for music publishing is not new.
March 23, 2010
Recently a few projects I've been working on have required some sort of javascript paging or cycling functionality hooked into Views. While there are a few dedicated modules to do this (Views Carousel, Views Rotator, Views Cycle), they get in the way for me and I'd rather just deal with the javascript directly instead of wasting time figuring out how a module works.
January 22, 2010
Chapter Three is in love with Panels. A lot of people are, and with good reason. It has the power to eliminate the need for theme developers, especially with the development of Panels Everywhere. I have recently returned to Drupal after a long hiatus and while a lot remains familiar, Panels is one of those modules that has grown into a wild, hairy beast. I can't really tell you what variants or contexts are used for, and I'm not quite sure why I have to save twice when updating anything on a panel page. There is scarce documentation about using plugins, and I wouldn't necessarily describe creating a plugin as "fun". But it's a learning process, eh? So I'll share with you some of the best practices or problems I've encountered, and then maybe Merlin of Chaos will magically appear and comment that there is a far simpler way of doing it. Or maybe some of you have different approaches that you'd like to share or can find faults with my approach? **EDIT** I highly recommend reading all the comments attached to this post, Merlin of Chaos did appear and explained a few things, particularly how to specify an alternate admin theme and css without doing my hack. In this blog post I'll discuss how to make your theme aware of panels, as well as how to create a custom panel layout plugin. Read the full post here.
May 14, 2007
With node template files you are often limited to something like node.tpl.php and node-blog.tpl.php. Often times it'd be nice to make a different template for just one specific node or a different template for teaser/list view and full node view. Using the PHP code below, Drupal will look for these template files, split by page or no page view. This gives more fine grained control over your node tpl.php files.
April 27, 2007
The PHPTemplate system in Drupal is a powerful theming system. However, because it is written in PHP it is easy to abuse since it is possible to directly inject PHP logic into the templates. This often creates the effect of HTML-IN-PHP which is not good. HTML-IN-PHP:
April 27, 2007
When theming things I run into situations where a block of text is too long and I need a really quick way to truncate text and append an ellipses or custom trailing text. The built in drupal teaser truncates text in a much more logical manner (watches out for html tags and the like) while this php snippet is simpler and meant to run on pure text. You can do strip_tags() if you want to remove all the html tags before running this code on your piece of text. I often just drop this into my template.php and use it in various spots in the theme.
April 11, 2007
Documentary films, when successful, offer the viewer an intimate glimpse into a situation as it unfolds. There is often a progression or growth that occurs through the film, as every mistake and every twist and turn is captured candidly. It's captivating because it tells a story "as it happens" instead of recounting or remembering a story after it has happened. So why should software documentation be any different?!