Skip to main content

International phone numbers

This field adds phone numbers to items. For each number you can add a label (e.g. Office, Fax, Toll Free, etc), country code, area code, and phone number. The field configuration allows for very flexible displaying to accomodate to different styles and needs. The HTML code is very detailed for easy styling with CSS classes.

Plugin : phonenumbers — International Phone Numbers

:::info Source This page is generated from plugins/flexicontent_fields/phonenumbers/phonenumbers.xml and the official FLEXIcontent 5.x language files. :::

Editing​

Editing​

Values​

OptionDescriptionTypeValuesDefault
Use field in a group
use_ingroup
Enable to allow field to be part of field group, that is created via 'Field Group' field. NOTE: You should then select this field in ONLY ONE field groupmultilist0 = No
1 = Yes
0 (No)

Number of values​

OptionDescriptionTypeValuesDefault
Allow multiple values
allow_multiple
Allow more than 1 value for this fieldmultilist0 = No
1 = Yes
0 (No)
Values per row
fields_box_placing
Save space by allowing multiple values to show per rowradio0 = 1
1 = Multiple
0 (1)
Add position
add_position
Select to add value inline (show add button at every value) or append them to the bottom of the value listmultilist0 = Append to bottom
1 = Inline append
2 = Inline prepend
3 = Inline both
3 (Inline both)
max # values
max_values
The max number of values you wish to recordtext—0
Form card width
form_card_width
Width in pixels of the phone card in the item formtext—320
Show On
showon
Shown On Conditions. Use Joomla Format 'fieldname:value' e.g album_type:2 NOTE: DO not set this field to required. Also DISABLE prettyCheckable / Select2 JS in any referenced fields of type select*, checkbox*, radio*text——
Required
required
Choose yes if the field must be filledradio0 = No
1 = Yes
0 (No)

Values Creation​

OptionDescriptionTypeValuesDefault
Phone Label
use_label
—radio0 = No
1 = Yes
3
Country Code
use_cc
—multilist0 = No
1 = Yes
—
Default country
ac_country_default
Choosz a default country for phone number prefixfccountriesphones——
Allowed country
ac_country_allowed_list
Add allowed country, nothing add allfccountriesphones——
Phone Number
use_phone
—radio1 = 1 part
2 = area code + local number
3 = area code + part 2 + part 3
3 (area code + part 2 + part 3)

Form field​

OptionDescriptionTypeValuesDefault
Display label
display_label_form
Display or hide label of this fieldradio0 = No
1 = Floated left
2 = Cleared
1 (Floated left)
Label
label_form
Enter a label to use for item form that is different than field label for viewingtext——
No access message
no_acc_msg_form
Leave this blank to use system's default no access message, or enter a custom message for this fieldtext——

Phone Label​

OptionDescriptionTypeValuesDefault
Maximum Text Length
label_maxlength
Maximum number of characters allowed during user inputtext—48
Field size
label_size
Field size in the HTML formtext—48

Country Code​

OptionDescriptionTypeValuesDefault
Maximum Text Length
cc_maxlength
Maximum number of characters allowed during user inputtext—6
Field size
cc_size
Field size in the HTML formtext—6

Phone Number​

OptionDescriptionTypeValuesDefault
Part labels
show_part_labels
—radio0 = Hide
1 = Show
0 (Hide)

Part 1 (area code)​

OptionDescriptionTypeValuesDefault
Maximum Text Length
phone1_maxlength
Maximum number of characters allowed during user inputtext—12
Field size
phone1_size
Field size in the HTML formtext—12

Part 2​

OptionDescriptionTypeValuesDefault
Maximum Text Length
phone2_maxlength
Maximum number of characters allowed during user inputtext—12
Field size
phone2_size
Field size in the HTML formtext—12

Part 3​

OptionDescriptionTypeValuesDefault
Maximum Text Length
phone3_maxlength
Maximum number of characters allowed during user inputtext—12
Field size
phone3_size
Field size in the HTML formtext—12

Allow Letters in Phone Number​

OptionDescriptionTypeValuesDefault
Allow letters
allow_letters
Enable to allow letters (A to Z, uppercase only) in the phone number field. When disabled only numbers are allowed.radio0 = No
1 = Yes
0 (No)

Editing​

Viewing​

Viewing​

Basic​

Display​

OptionDescriptionTypeValuesDefault
Show in clients
show_in_clients
Select if the field will be created and shown to specific clientsfccheckbox——
Show in views
show_in_views
Select if the field will be created and shown to specific viewsfccheckbox——

Label and access​

OptionDescriptionTypeValuesDefault
Display label
display_label
Display or hide label of this fieldradio0 = No
1 = Yes
1 (Yes)
Show no access message
show_acc_msg
When field is inaccessible a no access message will be shown. NOTE: IF this parameter is disabled, the field will be invisible to users with no access, without any message or warning that it existsmultilist0 = No
1 = Yes
0 (No)
No access message
no_acc_msg
Leave this blank to use system's default no access message, or enter a custom message for this fieldtext——

Export​

OptionDescriptionTypeValuesDefault
Include in CSV export
include_in_csv_export
Select to include field in CSV export. Take care that not all fields support CSV export. Please test to determine if this field is included properly, since a special method is needed but not implemented yet by all fieldsmultilist0 = No
1 = Raw values
2 = Rendered values
0 (No)
Strip HTML tags
csv_strip_html
—radio0 = No
1 = Yes
0 (No)

Backend View​

OptionDescriptionTypeValuesDefault
Backend view appearance
backend_view_appearance
How this field's value is displayed in the admin items list. Overrides the global 'Custom columns appearance' setting when not set to Default.multilist0 = Default
1 = Check mark
2 = Clean up HTML and trim
0 (Default)
Trim length (characters)
backend_view_trim_chars
Number of characters to keep after stripping HTML tags.text—100

Layout​

Value display​

OptionDescriptionTypeValuesDefault
Display Phone Label
display_phone_label
Show the phone label when rendering the fieldradio0 = No
1 = Yes
1 (Yes)
Display Country Code
display_country_code
—radio0 = No
1 = Yes
1 (Yes)
Display Area Code
display_area_code
—radio0 = No
1 = Yes
1 (Yes)
Add tel: link
add_tel_link
Wraps the phone number in a link that uses the tel: protocolradio0 = No
1 = Yes
0 (No)

Property separators​

Phone Label​

OptionDescriptionTypeValuesDefault
Phone Label Prefix
label_prefix
HTML to place before the phone labeltext——
Phone Label Suffix
label_suffix
HTML to place after the phone labeltext——

Country Code​

OptionDescriptionTypeValuesDefault
Country Code Prefix
country_code_prefix
Text to place before the country codetext——
Country-Area Separator
separator_cc_phone1
Text to place between country code and area codetext——

Phone Number​

OptionDescriptionTypeValuesDefault
Area - Part 2 Separator
separator_phone1_phone2
Text to place between area code and part 2 (e.g. switch code)text——
Part 2 - Part 3 Separator
separator_phone2_phone3
Text to place between part 2 and part3 (e.g. between switch code and user number)text——

Value list​

Prefix - Suffix - Separator​

OptionDescriptionTypeValuesDefault
Every value prefix
opentag
This text is placed immediately before every field valuetext——
Every value suffix
closetag
This text is placed immediately after every field valuetext——
Opening text for Field
field_prefix
This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——
Closing text for Field
field_suffix
This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——

Content plugins​

Content Plugins -- You need this for description field, for other fields enable only if needed​

OptionDescriptionTypeValuesDefault
Trigger content plugins
trigger_onprepare_content
Enable this option if you want to trigger content plugin event: onPrepareContent. A small number of plugins may not work outside com_content.multilist0 = No
1 = Yes
0 (No)
Trigger inside category
trigger_plgs_incatview
Trigger content plugins on this field when item is displayed in a category viewradio0 = No
1 = Yes
0 (No)
Specific plugins only
plugins
You can choose specific plugins in this list or leave empty to trigger all. This feature is useful in some cases to avoid conflicts, multiple displays or reduce the load. Keep in mind that once the plugin is imported for a field, it will automatically be executed on all following fields in the loop.pluginlist——

Viewing​