A recent client wanted to remove everything from the user login page when the site was in maintenance (or Site off-line as its referred to in most system messages and documentation). Just showing the user login form when the site is off-line actually makes a lot of sense because whats the point of showing things like primary links, search block or whatever else might show on your normal user login page.
This page is the test results page for the code examples located at http://adaptivethemes.com/element-styling-cheat-sheet
Its relatively easy to hide content in Drupal using CSS, however its a whole different ball game to hide content and keep it accessible to all site visitors. Disabled web users may be using a screen reader or other Assistive Technology. For Drupal 7 we wanted a way to hide content that worked in all browsers and avoided many of the issues associated with current techniques.
I've been asked a few times by Drupal themers and designers how to do 100% header and footer backgrounds in Adaptivethemeâ€”and retain the theme settings so end users can still adjust the overall page width. Actually this is pretty easy - its just a matter of adding a couple of wrapper DIV's in the right places and overriding the layout variables that Adaptivetheme uses to set the width.
First we wrap the various page elements in a set of wrapper DIV's. The new .container DIV will be full width and the .container-width wrapper will set the width - see the PHP snippet below.
Full reference for khtml, moz and webkit + CSS3 rounded corners.
Sometimes its useful to have a page.tpl.php template per node type. While you can have a node-[type].tpl.php be default in Drupal 6, the same does not apply to page level templates.
To add these template suggestions to your theme simply add the following code to template.php, replacing themeName with the name of your theme.
Hot Drupal that is!
We just moved host, for various reasons our old host wasn't really working out for us so we jumped ship and went with Hot Drupal.
We're also trying out the Boost module, again, I hope it goes better this time around.
Still some issues to sort out with content delivery, imagecache and so on, but so far the migration went about as smooth as it gets.
NOTE: I have submitted a feature request to Drupal 7 to have this included in core - if you have some opinion on that please see Field Type Template Suggestions
Today I finally got around to testing out the new field suggestions in Drupal 7. If you're not familiar with the standard suggestions in short you can either use field templates or override theme_field using a naming convention not unlike we do with preprocess functions. What struck me as kind of odd was the lack suggestions for field typesâ€”maybe there's a very good reason for this such as performance, I don't know, but I thought it might be interesting to see if I could use them, if I wanted to.
A recent project used the Google Calendar widget - this is embedded in a iframe (in a standard Drupal block) and thus can't be styled with CSS as per normal - but we wanted to style it to match the overall design.
We had a project recently where we needed to add first and last classes to Drupals secondary local tasks. I was in a bit of a hurry so instead of trying to figure this out myself I Googled it and pretty quickly found this post on Drupal.org which seemed to fit the bill. Problem is the post doesn't actually tell you how or where to use the snippet, which isn't much good for those of you struggling with Drupal in the first place.
Drupal's template suggestions are plentiful and pretty powerful stuff, however, given all the options there are some noteable oversights. In particular the ability to use page-taxonomy suggestions per vocabulary, something like page-vocab-1.tpl.php to theme all taxonomy term pages in vocabulary 1 (where 1 is the VID or vocabulary id).
To achieve this we turn to our trusty preprocess_page function which by now every Drupal themer worth his or her salt knows all about.
How to add a Superfish drop menu to Genesis or Adaptivetheme is one of the most common questions I get. Believe when I say I get emails from well intentioned Drupal users on a weekly basis asking me this. So now, please stop emailing me, I relent, heres how its done.
1. Get the Files
First, download the archive attached to this page. Unzip it and place in your theme.
Note that these files may now be out of day and there could be newer versions.
Myself, like many others, have always had an acrimonious relationship with the word "node". It didn't exactly get off to a good start when node presented me with a rude "wtf" moment when we first met. Things only went down hill after that, node remaining aloof and abstract, without ever just coming out and telling me what it actually was.
Heres a quick list of rounded corner tools and techniques you can use in your Drupal theme.
Bit buggy, seems to do the trick, real quick and saves having to remember the different requirements for webkit and moz.
Quick list of some handy font family groups (often called "font stacks") for web design and Drupal theme development. Includes the three groups that come with Adaptivetheme starter theme and an example of how to set the font-family in your CSS.
Sans serif - smaller
"Helvetica Neue", Arial, Helvetica, sans-serif
Sans serif - larger
Verdana, Geneva, Arial, Helvetica, sans-serif
Serif - smaller
Garamond, Perpetua, "Nimbus Roman No9 L", "Times New Roman", serif
Drupal 6 has seen some truly fantastic installation profiles emerge that allow end users to have a site-in-a-box installation in minutes. UberDrupal gets you up to speed with Uberbcart and OpenPublish is an amazing profile for setting up a magazine or news site.
Each of these profiles has very specific theming requirements. Ubercart has the product and cart pages, while OpenPublish has extended user profiles and bio information for nodes and many additional views and other features.
Quick intro video showing the new Admin User Link menu that appear in the admin section pages by default. There is a new theme setting so you can toggle the display on and off and by default it won't appear if the Admin Menu module is installed.
This is likely to become a pretty big collection of videos about Scrum and other other Agile based managements processes.