Adding/storing data by year

Do you actually need a custom dedicated page?

If you input the birth date on each animal asset, you can go to /farm/assets/animals e.g. https://farm.example.com/farm/assets/animals then click “filter” and specify a date of birth range:

image

The resulting query url will end up looking something like this:

https://farm.example.com/farm/assets/animals/list?field_farm_date_value[min][month]=1&field_farm_date_value[min][day]=1&field_farm_date_value[min][year]=2019&field_farm_date_value[max][month]=12&field_farm_date_value[max][day]=31&field_farm_date_value[max][year]=2019

Which yields a nice table including the information you’re looking for;

1 Like