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 5 Current »

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, double-curly-bracket syntax:

{{VARIABLE_NAME}}

The table below lists all acceptable variables names:

Variable Name

Description

page.title

The value entered into the "Title" field when creating the page

page.created_at

The date/time at which the page was created

page.updated_at

The date/time at which the page was last updated

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

page.products_compact_list

Outputs a compact list of the featured products

page.products_extended_list

Outputs a extended list of the featured products

page.products_grid_list

Outputs a grid list of the featured products

* 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