Variables and Generic Templates

Here's a common problem: I need a template for 3 different locations, each of them slightly differentiated by their location. The obvious solution would be to create 3 separate templates, copies of one another with slight modifications. In this topic we cover another option which saves time and reduces overhead, that is 'variables'.

Variables are simple to construct and can simplify managing a large signage network tremendously.

Variables are created by adding the proper text to ANY tag field. This includes device, playlist, schedule, or even source tags. The variable must follow the following format: NAME=VALUE, for example to create a variable named Location you need to add Location=Fargo,ND to a tag field.

Let's go through a simple example for our test case. In this example I want to create a playlist of templates which displays the weather for 3 different locations in sequence.

Step 1: Create our generic template

This is a very simple template which will display the location name along with the current weather.

Template_Designer.png

Template_Designer.png

Since we want the text and weather to utilize our variable we use the variable merge tag in all the relevant template fields. The merge tag for our variable looks like this:

*|VAR.Location|*

It follows the format: *|VAR.Variable Name|*.

Step 2: Create a playlist for our template(s)

Now we need to construct a playlist using our generic template. Create a new Template Playlist then add three template sources to the playlist. Make sure you select the template we just created for each source.

Edit_Playlist__test_template_playlist_.png

When adding the playlist source we need to provide the value for our variable. For each source use a different location. You can see how we specified the location for one our sources to be Jackson Hole, WY.

Edit_Playlist__test_template_playlist_.png

Remember that variables can be specified in ANY tag field including playlists, schedules, templates, and even the device.

Step 3: Schedule and test our new playlist

Now schedule your playlist to any of your devices. As the playlist loops through you'll see the location name and weather match the location of the variable assigned to each individual playlist source.

device-2016-02-26-151010.png

As you can see, variables can be a powerful tool when organizing large deployments. For any questions please don't hesitate to just ask us!

Recent Discussions

20 Oct, 2017 11:55 PM
03 Oct, 2017 09:50 PM
31 Aug, 2017 11:46 AM
29 Aug, 2017 02:18 PM
29 Aug, 2017 02:13 PM