Drupal

Some things that you need for every Drupal project: time saving modules, a nice rearend, some annoying IE6 debugging and lashings of tea.

I just decided to try the YUI Rich Text editor, because I had heard nice things about it. However a brief test with it this morning revealed that it produces truly horrible markup!

It doesn't take much editing to start spitting out <span> and <div> tags all over the shop.

Tags:

I liked the idea of Sotak's calendar icons, but the colours didn't fit in with my theme, and I wanted the text to be a little easier to read, and to include the year.

So I made my own:

DEC 31 1999
JAN 22 2008
FEB 9 2025
MAR 22 2008
APR 22 2008
MAY 2 2025
JUN 31 2008
JUL 22 2008

Rather than an icon for each month, this technique uses just 1 background image (.png and psd attached) and a slightly modified template.php. Everything else can be styled with CSS.

With a bit of imagination, and a couple of tweaks to the function, and a few lines of CSS these icons can be very flexible. Different colour for articles over a year old? No problem. Colour coded by taxonomy? Sorted.

Syndicate content

Random Image:

It's a mini adventure
The Royal Harbour, Ramsgate
Hampshire Hills
Hmmm, more pictures of the horizon

Pete's tweets (@prbass)

  • RT @datastore Inside the Whole Government Accounts: why are they so bad? http://t.co/83ODc3AB 17 hours 1 min ago
  • Very snowy and TFL still trying to run my bus home. Must be an election year. 3 days 13 min ago
  • @kanedr but open data won't help a programme built on a false premise. Retraining unemployed people is not going to create job vacancies. 1 week 1 hour ago
  • Pow! Take that deficit! I've just paid my tax bill 1 week 15 hours ago