Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Custom pages can contain variables that are replaced with values when the page is presented to a visitor.

Variables are designated in the page body using the following syntax:

{{ VARIABLE_NAME }}

The table below lists all acceptable variables names:

Variable NameDescription
app_name *The name used in email subject line
app_url *The url used in email body
company_nameThe company name
phoneThe phone number
faxThe fax number
tax_idThe Tax ID
suiteThe suite line of the corporate address
streetThe street line of the corporate address
cityThe city of the corporate address
stateThe state for the corporate address
zipThe ZIP for the corporate address
countryThe country for the corporate address
order_suiteThe suite line of the ordering address
order_streetThe street line of the ordering address
order_cityThe city for the ordering address
order_stateThe state for the ordering address
order_zipThe ZIP for the ordering address
order_countryThe country for the ordering address
sales_emailThe sales email address
support_emailThe support email address
hosted_ebooks_trial_emailThe hosted ebook trial email address
webmaster_emailThe webmaster email address
onix_contactThe person to contact regarding ONIX
onix_emailThe email address of the person to contact regarding ONIX

* To change the value of these variables please contact TitleLeaf support. All other variables can be changed via the Admin UI.

Example

To display the company name defined in Admin Settings, use the following code:

Welcome to the {{ company_name }} website!

Assuming company_name is defined as "Acme, Inc.", a visitor will be presented with the following:

Welcome to the Acme, Inc. website!