Définir des champs utilisant le type pays

Print

This is done by using the value country for the attribute type on <field> elements. For example:

Print

  1. <!-- Assuming that we are in a fieldset for which the field definitions have been registered -->
  2. <field
  3. type="country"
  4. name="my_country_field"
  5. label="My Country"
  6. description="Select your country or territory from this list"
  7. />