I have the Birthday module installed that displays the age of users. I am trying to create an exposed filter in a view that will allow users to select from $age1 to $age2. Of course this requires two filters (one min age and one max age) so the view will display all users who fall into that bracket. The Birthday module computes age "on the fly." Any guidance on how to proceed with this will be greatly appreciated. Thanks. :)

1 Answer 1


You can use the contextual range filter module. to create a filter range for your age field.

Views Contextual Range Filter is a simple plugin for Views that adds the option to contextually filter, not just by a single value, but also by range.

Numeric, alphabetical (string) and list ranges are all supported. Node ids, user ids and even taxonomy term ids are all special cases of numbers so will work also. Range-filtering on the "created" (posted) and "updated" (last modified) node properties is also supported, provided you use the correct format as dictated by Views. So, YYYYMMDD for full dates or one of the shorter year+month, year-only, month-only, week-only and day-only formats.

  • It seems this is exactly what I need..! Thank you. :)
    – user14666
    Aug 1, 2013 at 23:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.