This site has moved.
*** This page is deprecated. Please click here for the new version ***
When you use templates, your data and your HTML/CSS code are completely separated. That means that you are going to need 2 different sheets on your Spreadsheet instead of one.
The first sheet contains all the data without any HTML or CSS inside.
Apply the Hidden parameter to the columns you don't want to appear or that must not appear (< see the view documentation for more details on the number of column that must be shown > coming soon).
Create new empty column. In the Awesome Table view, it will contain the processed template data.
Give it a name. You can apply the filter you want. If you don't want to link a filter to this column, just apply the NoFilter parameter.
The template consists of a group of two cells (for example A1:A2), that define together the Target column (first row) and the template to use (second row). Multiple groups can be used as in the example below.
In your Template sheet, add a column with the same header name as the one created in your data sheet.
Build your template with HTML and CSS in the second row of your column. Inside the template, you can specify which data to write by using markers in the form : ${"Name Of Your Column"} or {{Name Of Your Column}}
When Awesome Table loads, it will fetch the data, then the template, and combines the two to display your data and the chosen layout.
Note : Templates are parsed from right to left, which means that a parsed column can be reused in markers, and will contain the data previously built.
Note: You can directly add HTML to format your AT content in the data sheet. However, we do not recommend this way of using templates. As the HTML will be part of data, it will be loaded again and again for each cells, slowing the gadget consequently.
In the Awesome Table view configuration, for the data, just use the normal configuration parameters :
Then, in the Advanced parameters tab, fill the Template range settings with the complete range of your templates :
Note : If you are using a query to select which column to use, or to select the columns order, don't forget to include all the columns that contain source data for the templates !
Learn more about Template in these articles :