Loading...
Navigation überspringen
Bitte beachte, dass sich diese Dokumentation auf die neuste Version dieser Erweiterung bezieht. Wenn eine ältere Version eingesetzt wird, kann diese abweichen. Die jeweils passende Dokumentation befindet sich im Dokumentation-Verzeichnis der Erweiterung.

Phone field

This field can be used for phone values.

Phone Form-Engine field

Definition (default with DE phone code)

$table = 'tx_crm_domain_model_activityunit';
$lll = 'LLL:EXT:crm/Resources/Private/Language/locallang_db.xlf:' . $table;
return [
    'columns' => [
        'phone' => [
            'label' => $lll . '.phone',
            'config' => \CodingMs\AdditionalTca\Tca\Configuration::get('phone'),
        ],
    ],
];

Definition (with UK phone code)

$table = 'tx_crm_domain_model_activityunit';
$lll = 'LLL:EXT:crm/Resources/Private/Language/locallang_db.xlf:' . $table;
return [
    'columns' => [
        'phone' => [
            'label' => $lll . '.phone',
            'config' => \CodingMs\AdditionalTca\Tca\Configuration::get('phone', false, false, '', [
                'country' => 'UK'
            ]),
        ],
    ],
];

Migration tips

To update a phone number field (e.g. (0123) 456 789) to format '+49123456789':

UPDATE tx_crm_domain_model_contact SET phone = REPLACE(phone, '(', '');
UPDATE tx_crm_domain_model_contact SET phone = REPLACE(phone, ')', '');
UPDATE tx_crm_domain_model_contact SET phone = REPLACE(phone, ' ', '');
UPDATE tx_crm_domain_model_contact SET phone = REPLACE(phone, '-', '');
UPDATE tx_crm_domain_model_contact SET phone = REPLACE(phone, '/', '');
UPDATE tx_crm_domain_model_contact SET phone = CONCAT(REPLACE(LEFT(phone, 1), '0', '+49'),SUBSTRING(phone, 2)) WHERE phone LIKE '0%';

Kontaktanfrage

Du kannst uns jederzeit kontaktieren

Stop! Playing in the meantime?
Stop! Playing in the meantime?
Stop! Playing in the meantime?

Stop! Playing in the meantime?

Break the highscore

Press Start
Contact request
Screenreader label
Security question
A9A_________KJ5______
K______3____4_____YA4
QXO___PWR___284______
U_F____5____C_N___3WM
H9D_________FQF______