Creating a subtheme is a powerful and flexible way of theming in Drupal. Drupal 6 made implementing subthemes relatively easy to do. There are a few basic concepts to understand before starting, but once underway, creating a subtheme is a simple straightforward process. In this post, I'll outline the process for creating a subtheme. This is meant to be a quick primer, not an exhaustive tutorial on the elements and features of subthemes. Read More »
Advantage Labs - The Art and Science of Online Progress
Introduction to Drupal
I had a great time attending the Introduction to Drupal training yesterday at Advantage labs! Not only was it a great starter on how to get into Drupal, the group was diverse on CMS experience, careers, gender and race!
Adria Richards, But You're a Girl blog post
Drupal is a powerful tool that can provide functionality for your site that was beyond reach just a few years ago. Going from downloading Drupal from Drupal.org to having the site of your dreams can be a daunting process, however, unless you are familiar with some key concepts and development strategies.
Free! There is no fee required to attend this workshop. Read More »
Theming how attachments are displayed on a node
When you first enable the Upload module and start attaching files like PDFs to your nodes, you'll notice that those attachments are displayed in a table at the bottom of the node showing the file name and size of each file attached to the node. This works for most situations, but sometimes you want to make things look just a little bit different.
In today's example we'll re-theme the attachments display to remove this table. In our use case the user will only be attaching one file, a PDF, to each node. Rather than have the PDF's name display in table - they want a simple link with the text "Download the PDF". So how do we make this change?
The answer is a theme override. The default attachments display is provided by theme_upload_attachments(). By overriding this theme function in our site's theme, we can change the behavior however we want. In this tip we'll be learning how to override a theme function using some basic PHP knowledge and a bit of help from the Drupal API site.
