One of the most common uses of Designer is the creation of Templates. Designer defines the structure and layout of the Template and specifies elements or variables that can be changed by binding them to a data field. Templates are filled in via a simple web form in Content Manager to create a Message by changing media assets or adding text as defined by the template and template administration restrictions in Content Manager.
It is presumed you are already familiar with the the basic creation of pages and layout tools. If not, see the Getting Started Section of this guide for quick overview.
Templates can display one or more pages and you can use the same Data Field Name (variable) more than once to show the same information.
Please bear in mind this warning when creating templates:
What can be ‘Bound’?
- Text Elements
- Text Crawls (Text Expression or Text File)
- Background (Image /Videos)
- Clips (Images//Videos)
- Pages (Playlists in Content Manager)
- Table Cells
- Font Size
- Many Numeric values of an Items properties for example the elements position
Content Manager only allows you to replace the placeholders with data of the same type (i.e. Text with Text, Video with Video and Images with images.)
Binding is easy – just right mouse click!
Whether you are binding a text element, a clip or even some panel options for instance Font size – Bind to Data is just a right-click away (or you can use the Edit menu for Elements). To bind something, right click on what you want to bind, then select and right-click the element or panel option:
- Bind Text To Data Field…: Text elements
- Bind Text Crawl Text To Data Field…: Text Crawl Text Expressions
- Bind Text Crawl Filename To Data Field…: Text Crawl Text Files
- Bind Clip Filename To Data Field…: Clip Files
- Bind Background Picture Filename To Data Field…: Background Files
See Template Creation for further details on each of these options.
You are defining Text variables and as such you should remember the rules for naming Variables.
Content Manager Template Properties
When Scala Designer publishes the scripts, Content Manager is able to distinguish between a normal script and a template script. Normal scripts are put directly in the media list, while template scripts are added to the Template list where they can be used to make Messages. A single Template can be used to generate any number of Messages.
It is useful to be able to present the fields in an order that is more friendly and also adjust some of the parameters of the fields. To do this:
- Login to Content Manger with an appropriate role.
- Open the Content tab.
- Click on Templates.
- Select the Template you just created and Click Properties.
- Change the field labels and order (if desired) and click Save.