I am creating a “Recipe” page using the CMS. I would like to do some very basic math and display the result as a value on the CMS item page.
My collection items have:
- Prep time
- Cook time
I would like to then add those two variables and display a “Total time” field.
I know I can just use a custom embed and add the two fields within it.
I guess my issue is that I don’t know the proper syntax to calculate the two and display the information on the page.
Any help is appreciated!