What I am trying to achieve is to split the years into semesters. I want the editor to be able to file the nodes of a content type called projects under a winter and a summer semester of a year.

On the node edit page it should look like this:

choose semester:
summersemester 2011
wintersemester 2011/2012
summersemester 2012
wintersemester 2012/2013
summer......
winter......

The nodes of this content type are going to be processed through a view with an exposed filter, to filter the projects by Semester.

Is there anybody who knows if its possible and how to get the date module working this way?

Best regards

Comments

arlinsandbulte’s picture

I think this has been asked before, but a quick search turned up very little.
My first thought is there is no standard for semesters (that I am aware of). Everyone might define their semester periods differently, so it makes it much more difficult to include in Date, especially when this might be considered an edge case.

Another thought I had was perhaps a computed field could be created to automatically assign a semester to a node depending on a date field on that node. So, you assign a date, and the semester field is automatically populated based on a date -> semester conversion formula.
However, that might be opposite of what you want.
It might be possible to do the calculation backwards: Assign a semester and the date fields automatically populate based on a semester -> dates conversion formula.

Personally, I think this should be done in a custom module (like seasons module or semester module) rather than in date.

P.S.
In my quick search, I did find this that may or may not help you: #416172: Filtering indirect date field: is it possible?

brenes’s picture

Thank you for your constructive reply. Your idea to do this in a custom module seems good to me. Probably it could extend the date module with the functionality to cluster time in certain periods (seasons), which could be defined by the administrator and choosen by editors on the node add/edit pages. I am not a php Programmer, but a designer and if there is a request for this functionality, I can imagine to help with the user interface of such a module.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

We're sorry but the D6 release of Date module is no longer being supported. You are encouraged to update to Drupal 7 or 8, or direct questions to Drupal Answers.