Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/427796417080729600
added 1 characters in body
Source Link
Patrick Kenny
  • 29.4k
  • 19
  • 139
  • 316

I have a list of events (custom content type event) shown in a view.

There are several events each week. Each weekevent has a date field, date, that records the date that the event will be held.

I would like to group the events by the week of the year that they occur. For example:

  • Next week
  • Two weeks from now
  • Three weeks from now
  • Four weeks from now

Is there a fancy way to compute the week using the date field and views grouping?

I have a list of events (custom content type event) shown in a view.

There are several events each week. Each week has a date field, date, that records the date that the event will be held.

I would like to group the events by the week of the year that they occur. For example:

  • Next week
  • Two weeks from now
  • Three weeks from now
  • Four weeks from now

Is there a fancy way to compute the week using the date field and views grouping?

I have a list of events (custom content type event) shown in a view.

There are several events each week. Each event has a date field, date, that records the date that the event will be held.

I would like to group the events by the week of the year that they occur. For example:

  • Next week
  • Two weeks from now
  • Three weeks from now
  • Four weeks from now

Is there a fancy way to compute the week using the date field and views grouping?

Source Link
Patrick Kenny
  • 29.4k
  • 19
  • 139
  • 316

How can I group view results based on the week of the year using a date field?

I have a list of events (custom content type event) shown in a view.

There are several events each week. Each week has a date field, date, that records the date that the event will be held.

I would like to group the events by the week of the year that they occur. For example:

  • Next week
  • Two weeks from now
  • Three weeks from now
  • Four weeks from now

Is there a fancy way to compute the week using the date field and views grouping?