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.
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
Comment #1
TimeBandit commentedCheck 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
Comment #2
karens commentedThe answer is the same in D6. The theme system is designed for this.
Comment #4
nicknickoli commentedThis is a much more helpful link on themeing for 6: http://drupal.org/node/295105