Hello,
With Drupal 6, there was a nice module called "Birthdays"; it provided a block with a list of upcoming birthdays : username (age) | day/month. This module has not been ported on D7 (nor BD) and I can't find a similar module.
I consider to recreate the functionality by using views but struggle with this approach...
- Module Views Conditional has been installed
- Profile has field "Birthday" (User account: Birthday = Birthday field_birthday Date Pop-up calendar)
- Views birthday is created with Field Birthday and filter User account: Birthday (now) (Is greater or equal to | enter relative date | now)
This would work if the defined birthday had the current year (which is of course not the case).
How can I filter based on the day and month only?
Or should I consider another approach?
Thanks!
Hi Patch-works! This is a tricky problem that (AKAIK) can't be solved with Views filters or sorts as-is. You'll need to create some custom SQL "order by" code to be added to your "normal" Views SQL query. The module Views Raw SQL will allow you to add custom SQL code to the existing query - but it will require some trial and error. Also, this approach to birthday sorting through sql commands can be helpful (it will need to be adapted).
Otherwise, perhaps porting the module you mentioned?