Includes

Includes are reusable pieces of content that you can use throughout your templates and email campaigns.

The most common use of an include is to create a standard header or footer. If you create a header once and include it in multiple templates, you will only have to make changes in one place later.

Creating An Include

Click on the Includes tab and create an include. You must give the include a name, and an HTML version and a Text version.

Invoking An Include

Use the following syntax:

{include "includename"}

Depending on whether you are in HTML or Text mode, the correct version will be included.

Limitations

You may not do an include within another include.

For performance reasons, the include syntax is not dynamically evaluated; therefore you cannot, for example, do {include user_preference_setting}. As a workaround, you could wrap your include in a conditional:

{if user_preference_setting == 'redlayout'}
{include "redlayout"}
{/if}
 
/var/www/docs.sailthru.com/htdocs/data/pages/includes.txt · Last modified: 2010/09/17 16:43 by Ian White
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki