What is the best approach to themeing the Date CCK Field? I'd like to be able to treat each date component separately, i.e. have separate CSS classes for both From and To: Year, Month, Day, Hour etc.

Any pointers would be greatly appreciated.

Comments

TimeBandit’s picture

Check into theming the appropriate function. I understand you're in Drupal 6 but in D5 it is the date_display_combination function. You may be able to get in here and tear the date apart to then theme the separate parts of it. Not exactly the same as what you are trying to achieve but maybe some ideas in my http://www.waycoolwebdesign.com/Blog/2009/05/08/Theming-Date-Module-for-Drupal-5">Theming Date Module article.

Way Cool Web Design | Theming Drupal 5

karens’s picture

Status: Active » Fixed

The answer is the same in D6. The theme system is designed for this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nicknickoli’s picture

This is a much more helpful link on themeing for 6: http://drupal.org/node/295105