I’m building a website in Wix Studio and I have a CMS collection for animals.
Each item has a date field called “geborenam” (date of birth).
On my List Page (“Tiere alle”), I want to display the calculated age of each animal in the format:
“X years, Y months”
I already have a text element inside the repeated list item where the age should appear.
My problem is:
-
Wix Studio CMS does not support calculated fields
-
I cannot get the Velo code working on the List Page
-
I am unsure how to correctly use the itemReady function in Wix Studio
-
I need the age to update dynamically based on the current date
Can someone please explain:
-
Where exactly the Page Code is located in Wix Studio?
-
How to correctly use the itemReady($item, itemData) function for a List Page?
-
How to insert the birthdate (
geborenam) from the CMS and convert it to age? -
How to output the result into my text element (ID:
agetext) inside the repeated item?
Any help or a working code example for Wix Studio (not the old Wix Editor) would be greatly appreciated.
Thank you!