Welcome, Guest Login

Support Center

Using Data Sources in Scripts

Last Updated: Oct 14, 2015 06:41PM EDT

As with Key-Value Pair substitution, you can reference a data source. To do this, you need to provide the data source name, the table name and the field in the table. Drop downs make this simple in parts of the system, but at times you might have to type something like this:

[[ds:/Stars/actor/name]] appeared first in the film 
‚Äč"[[ds:/Stars/actor/debut]]".

which could produce this result

Dustin Hoffman appeared first in the film "The Tiger Makes Out".


Data Source in HTML

Data Source can be used directly in an HTML Block:

if your variable contains a text: <h1> [[ds:/Stars/actor/name]] </h1>

if your variable contains a URL: <a href="[[ds:/Stars/actor/name_URL]]">Text</a>

If your variable contains an image link:    <img src="[[ds:/Stars/actor/name_URL
]]">



See also:

Help us improve! Rate this article:

Yes I found this article helpful

Ask a Question   

support@eachscape.com
http://assets3.desk.com/
false
eachscape
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete