This is the second of two related demos:
- Adding Merge Fields to a Template
- Inserting Rules for Conditional Content in a Template
The two-part demo shows how to create a treatment template inviting customers to a tradeshow. It uses conditional content to determine the geographic location of each recipient, and to invite them to the closest show.
In this second part, you open the template that you created in the first part, and you insert rules to invite customers to one of three tradeshows.
Steps:
Locate the Tradeshow Template you created in the first part of the demo.
Click an entry in the Tradeshow Template row.
Step 1Click the Actions menu.
Step 2Click the Edit list item.
Step 3The tradeshows are being held in San Francisco, Seattle, and Las Vegas. You will add rules to decide where to invite each recipient, based on their state of residence.
Position your cursor on a new line under the invitation text.
Click the button to the right of the Rule Condition field.
Step 4Click the If list item.
Step 5Click the button to the right of the Merge Fields field.
Step 6Click the scrollbar.
Step 7Click the State list item.
Step 8Click the button to the right of the Operators field.
Step 9Click the Is equal to list item.
Step 10Click the Insert button.
Step 11You have begun the first rule.
Step 12Here, you can either:
• insert text directly, or
• insert a placeholder for a pre-defined block of content.
In this demo, you insert a placeholder.
Use the mouse to position your cursor to the left of $(endif) and click.
Step 13Click the button to the right of the If field.
Step 14Click the Insert block list item.
Step 15Click the Insert button.
Step 16You have inserted a block in the rule.
You now replace the two variables with the values to use. You will enter the State to test for, and the name of the block to insert.
Step 17In the If statement, select the string between the quotation marks, but do not select the quotation marks themselves.
Enter the desired information into the field. Enter
In the InsertBlock statement, select the string between the quotation marks, but do not select the quotation marks themselves.
Enter the desired information into the field. Enter
Now you create the block of text to insert in place of SFO.
First make a new line in the template. Position the cursor at the end of the line.
Press [Enter].
Step 20Click the button to the right of the Insert block field.
Step 21Click the Create block list item.
Step 22Click the Insert button.
Step 23In the DefineBlock statement, select the string between the quotation marks, but do not select the quotation marks themselves.
Enter the desired information into the field. Enter
Now you make a place in your template to enter a definition of SFO.
Use the right arrow key to position your cursor between the close parenthesis and the dollar sign.
Press [Right].
Step 25Start a new line.
Press [Enter].
Step 26Enter the address for the San Francisco show:
Moscone Center
747 Howard Street
San Francisco, CA 94103
Press [Enter].
Step 27You have completed the definition of the SFO block.
To invite customers to the other shows you repeat the previous steps using Washington state and SEA for Seattle and Nevada state and LAS for Las Vegas.
The next frame shows the results.
Step 28Use the CreateBlock as you did for SFO, to define addresses for the Seattle and Las Vegas shows.
The next frame shows the results.
Step 29Click the Save button.
Step 30You began with a template that merged in the name of every recipient.
Then, you inserted rules to check each recipient's location and invite them to the tradeshow in the corresponding city.
This concludes the demo.