Q: How many Drupal themers does it take to perform a custom field label colonectomy?
A: You don't want to know.
Our journey began with what seemed to be a simple request: How do you remove the colons from the end of field labels on a Drupal 6 site? Read More »
Drupal theming
Drupal Colonoscopy: Or, How I learned to theme a CCK field in Drupal 6
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.
Drupal website not seeing style.css sheets
Recently, we have had a couple people in our Lab Hours who are having issues with their site not seeing the style sheet. Read More »
