studioespresso / craft-easyaddressfield
The only address field you need
Installs: 17 876
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 3
Type:craft-plugin
Requires
- craftcms/cms: ^5.0.0-alpha
- giggsey/locale: ^2.0.0
- league/iso3166: ^3.0
- maxh/php-nominatim: ^2.0
Requires (Dev)
- craftcms/ecs: dev-main
- craftcms/phpstan: dev-main
- craftcms/rector: dev-main
- dev-develop-v5
- v5.x-dev
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 5.0.0-alpha.1
- 4.0.12
- 4.0.11
- 4.0.10
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0.0
- 4.0.0-beta.1
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 1.4.0
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- dev-develop
- dev-master
- dev-craft3
This package is auto-updated.
Last update: 2024-10-28 13:25:57 UTC
README
The only address field you need
Requirements
This plugin requires Craft CMS 3.0.0-RC1 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require studioespresso/craft-easyaddressfield
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for "Easy Address Field".
Template variables
Printing address values
You can access the values from your address field in Twig through the following variables:
field.name field.street field.street2 field.postalCode field.state field.country // returns the country code field.getCountryName(craft.app.locale) // returns the coutry's full name, in the country's locale field.latitude field.longitude field.getDirectionsUrl() // get a directions link to the given address
Upgrading from Craft 4 to Craft 5
getDirectionsUrl()
If you're using the getDirectionsUrl()
function on craft.address
, you'll now need to call the function on the field itself instead of the on the plugin's Twig variable.
getStaticMap() & getStaticMapRaw()
These functions have been removed from the plugin, you'll need to replace these yourself.