Easy Guide to Using Template Variables

Template variables are neat! They let you set placeholders that you can customize later on monday.com views.

An Example to Understand Better:

Say you're on monday.com instance and you've got this itch to showcase different YouTube videos on your page. Here’s how you can smartly do that:

Option 1: Multiple Templates - You could make a unique template for each YouTube video, each with its specific video URL. But this can get real messy if you’ve got lots of videos.

Option 2: One Master Template - The smarter move? Create just one template for all your YouTube vids. Instead of sticking a direct YouTube link in there, you'd use a placeholder like {url}. Later, when you're in a view (Item ,Board ,Dashboard or Object), you can pop in the exact URL you want.

The second option keeps everything tidy and avoids a template overload.

Setting Up These Variables:

(Image Reference)

https://prod-files-secure.s3.us-west-2.amazonaws.com/f85c27fe-6e0a-420d-b343-300362e0ca22/adf4bbc0-8317-404c-993c-6b0a90351f9a/Untitled.png

1. Dive into a new or existing template and find the Variable section.

2. Here's how to set up your variable:

Putting the Variables to Work:

Currently, to work with these variables, you need a bit of JavaScript magic.

1. In the variable section, spot the "usage" link? Click it!