Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: RightUp 1.0.2 — Minor update available for module rightup (1.0.2). Release: CronWatch 0.12.1 — Minor update available for module cronwatch (0.12.1). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

The "Age exposed filter" for the Views, which works on fields of the "Date" type.

Use case

Let's say a user's account has the field of the "Date" type to collect a user's birthday.
And let's assume we need to create a view to display all users that came of age.

To achieve this we need to do the following steps:
1. Create the view to display users.
2. Add to the view the "Age filter (field_birthday)".
3. Select the "Is greater than or equal to" operator.
4. Input 18 into the "Value" field.

Using listboxes instead of texfields

For entering age values it's possible to use or textfields or listboxex.
To use listboxes check the "Use listboxes instead of text fields" option and input Min and Max values.
The module will generate intermediate values ​​and fill the listboxes with them.
There is two pairs of Max Min. The first used for single operations like "is equal" and the both are used for the "Is between" and "Is not between" operations.
For altering of parameters of listsboxes, click on the "Setting" link that is placed right of the filter's name.

Known Issues

1. To correct working of the "Preview" mode always save a view by click on the 'Save' button.
2. In case that the "Use listboxes instead of text fields" and "Grouped filters" options are checked, on a view page the following error message appears: "An illegal choice has been detected. Please contact the site administrator." Workaround: if you need to use the "Grouped filters" option, then you can use textfields instead of listboxes (uncheck the "Use listboxes instead of text fields" option).
If you do this but still get error messages, consider to apply the patch from this issue #2825860.

Similar projects

Views age filter - is the analogue for Drupal 7.

Sponsor

Radius Progressive

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.4 Stable Jan 18, 2024