Meal Planner

This article may contain affiliate links.This article may contain affiliate links.

The Meal Planner database stores full meal plans. (Here’s how to find it in your template)

Meal plans can reference multiple Recipes, creating a go-to plan for cooking an entire meal.

Below you’ll find a reference guide for all properties in the Meal Planner database. Properties are in alphabetical order.

Copy link to heading Copy link to heading

Type: Date

The date on which you plan to make this meal.

If you’d like to re-use a meal plan on the Calendar, simply move the date!

Copy link to heading

Type: Checkbox

Check this meal plan as a Favorite to make it show up in Favorite Meal views.

Copy link to heading

Type: Status

The meal of the day (e.g. time of day) for this planned meal.

NameDescription
Group: To-do
Group: In progress
BreakfastN/A
LunchN/A
DinnerN/A
SnackN/A
OtherN/A
Group: Complete
Copy link to heading

Type: Title

The name of the meal plan.

Copy link to heading

Type: Relation

The Recipes that are part of this meal plan.

This Relation property points to the Recipes database.

Copy link to heading

Type: Formula

The estimated time it will take to make this full meal.

By default, this value matches the highest total time from all of the Recipes attached to this meal plan.

You can input a time into Time Override to override that default time.

lets(
		totalTimeRaw,
		if(
			!empty(prop("Time Override")),
			prop("Time Override"),
			prop("Recipes").map(current.prop("Total Time")).max()
		),
		hours,
		floor(totalTimeRaw / 60),
		minutes,
		totalTimeRaw % 60,
		hourPlurality,
		if(
			hours == 1,
			"",
			"s"
		),
		minutePlurality,
		if(
			minutes == 1,
			"",
			"s"
		),
		time,
		ifs(
			totalTimeRaw > 60,
			hours + " hr" + hourPlurality + ", " + minutes + " minute" + minutePlurality,
			totalTimeRaw == 60,
			hours + " hr",
			minutes + " min" + minutePlurality
		),
		badgeColor,
		ifs(
			totalTimeRaw >= 90, "red",
			totalTimeRaw >= 45, "yellow",
			"green"
		),
		time.style(
			"c",
			"b",
			badgeColor,
			badgeColor + "_background"
		)
	)
Code language: JavaScript (javascript)
Copy link to heading

Type: Formula

This property returns the same value as the Time Est. property, but as a numeric value instead of a string. Used for sorting meals in Quick/By Time views.

if(
	!empty(prop("Time Override")),
	prop("Time Override"),
	prop("Recipes").map(current.prop("Total Time")).max()
)
Code language: JavaScript (javascript)
Copy link to heading

Type: Number

Add a number (in minutes) here to override the default value in the Time Est. property.

🤔 Have an UB Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas

🤔 Have a Question?

Fill out the form below and I’ll answer as soon as I can! ~Thomas