Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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 Name Description
app_name * The name used in email subject line
app_url * The url used in email body
company_name The company name
phone The phone number
fax The fax number
tax_id The Tax ID
suite The suite line of the corporate address
street The street line of the corporate address
city The city of the corporate address
state The state for the corporate address
zip The ZIP for the corporate address
country The country for the corporate address
order_suite The suite line of the ordering address
order_street The street line of the ordering address
order_city The city for the ordering address
order_state The state for the ordering address
order_zip The ZIP for the ordering address
order_country The country for the ordering address
sales_email The sales email address
support_email The support email address
hosted_ebooks_trial_email The hosted ebook trial email address
webmaster_email The webmaster email address
onix_contact The person to contact regarding ONIX
onix_email The 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!
  • No labels