The Address Field module provides a Drupal 7 field for standardized storage of postal addresses based on the OASIS xNAL standard.
Address Field provides one or more addresses to an entity, module, or user. It understands the differences in address styles for each country, and offers per-country edit forms and formatting.
For example, for Australia:
City might be the city and, in the case of a big city, is usually the suburb. An address in Wahroonga is usually
Wahroonga
but might beWahroonga, Sydney
.We have states: ACT, NSW, NT, QLD, SA, TAS, VIC, and WA. An address in Wahroonga is
Wahroonga NSW
.The postal code is usually called
postcode
and is a four-digit integer with the first digit indicating a state. NSW postcodes start with 2. Sydney is2000
. An address in Wahroonga isWahroonga NSW 2076
.
For a review of the module's inner workings, see the Address Field from a code perspective.
How to use adressfield with tokens / rules see Using tokens with addressfield
Comments
Address Field and Migrate - Only Address field doesn't work
Hi all,
I am having a problem migrating address fields. Everything else in my migration works, but address field simply is blank. I have searched for many hours and havent found a definitive answer that works. I am using Drupal 7.37, Migrate 7.x-2.7, Address Field 7.x-1.1. I have set the default value for address to US and I am using the : subfield notation. Any ideas why this wouldn't work?
many thanks!
My migration class is as follows:
This is a documentation page, not an issue page
Hello schuffr, Please open an issue with one of the modules. After the issue is resolved, you can add the solution to this documentation page, if this page needs a change.
petermoulding.com/web_architect
Adding administrative areas
Just a quick explanation how we managed to add Austrian administrative areas with the "new" hooks: