studiomitte / ttaddress-country-relation
Add a relation to static_countries in tt_address
Installs: 829
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: >=7.2
- evoweb/extender: ^6 || ^7
- friendsoftypo3/tt-address: ^5
- sjbr/static-info-tables: ^6
- typo3/cms-core: ^9.5 || ^10.0
Replaces
- typo3-ter/ttaddress-country-relation: 1.0.0
This package is auto-updated.
Last update: 2021-03-16 20:25:38 UTC
README
This TYPO3 extensions adds a new field to tt_address
to allow a relation to the country field of EXT:static_info_tables
.
Usage
- Install this extension by using
composer require studiomitte/ttaddress-country-relation
or by installing it in the Extension Manager - Select a country in a address record.
- Adopt the templates and use e.g.
{address.countryRelation.shortNameLocal}
.
Hide previous field
Hide the country or region text field by using Page TsConfig.
TCEFORM.tt_address {
country.disabled = 1
region.disabled = 1
}
Migration
A basic migration script updates the relation field by checking the country field and compare it to the following fields of static_countries
: cn_short_local, cn_short_en, cn_official_name_en, cn_iso_2, cn_iso_3
Call the script with
./typo3cms ttaddress_country_relation:migrate
Author
This extension has been created by StudioMitte, based in Linz.