Template variables are neat! They let you set placeholders that you can customize later on monday.com views.
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.
(Image Reference)
1. Dive into a new or existing template and find the Variable section.
2. Here's how to set up your variable:
Currently, to work with these variables, you need a bit of JavaScript magic.
1. In the variable section, spot the "usage" link? Click it!