Object: country
Variables
.code
The ISO 3166-1 2-letter code for the country.
TYPE
string
CONSTRAINTS
2 characters
PRESENCE
always
Examples
CODEaddress.country.code
OUTPUTDE
.name
The name of the country.
TYPE
string
CONSTRAINTS
max 64 characters
PRESENCE
always
Examples
CODEaddress.country.name
OUTPUTGermany
Variable Dump
Copy and paste the below HTML into any template page, to see all country data dumped to your page. You can then simply remove the unnecessary fields and other elements, and format the remaining fields however necessary to achieve the desired look and feel. Note that the dump assumes that country
object is available in the current scope. Change this if your country object is available under another name.
<style> .thedump .name{ background-color:#3A5FCD; color:white; padding:0.5em; font-weight:bold; } .thedump .code{ background-color:#888888; color:white; padding:0.5em; } .thedump .out{ background-color:white; color:#555555; padding:0.5em; border-bottom:1px solid #CCCCCC; margin-bottom:1em; } .thedump .code pre{ padding:0; margin:0; font-size:1.1em; } </style> <div class="thedump"> <div class="name">Country Code</div> <div class="code"><pre>{{ address.country.code }}</div> <div class="out">{{ address.country.code }}</div> <div class="name">Country Name</div> <div class="code"><pre>{{ address.country.name }}</div> <div class="out">{{ address.country.name }}</div> </div>