Documentation

Managing Countries

Available Liferay DXP 7.4 U36/Liferay Portal 7.4 GA36 and above

Liferay contains a list of available countries as defined by the ISO 3166 Standard, but you can use the Countries Management app to modify an existing entry or add a new entry.

Note

For liferay DXP 7.4 U36 - U40 (or Liferay Portal 7.4 GA36 - GA40), the Countries Management app is hidden from the UI and must be enabled with the use of feature flags. See Enable the Countries Management App below to see the steps.

Edit an Existing Country

  1. Open the Global Menu (Global Menu). Navigate to Control PanelConfigurationCountries Management

  2. Select a country by clicking its name, or click Options (Options icon) on the country and click Edit. Use the search bar to locate a specific country quickly.

  3. Make your desired changes and click Save. The country has now been modified.

Deactivate a Country

  1. Open the Global Menu (Global Menu). Navigate to Control PanelConfigurationCountries Management.

  2. Locate a country by scrolling through the list of countries. Use the search bar to locate a specific country quickly.

  3. Click Options (Options icon) on the Country and click Deactivate.

  4. Click OK to confirm, and the country is deactivated.

Activate a Country

  1. Open the Global Menu (Global Menu). Navigate to Control PanelConfigurationCountries Management

  2. Click Filter and Order next to the search bar and select Inactive to see a list of deactivated countries. Use the search bar to locate a specific country quickly.

  3. Click Options (Options icon) on the Country and click Activate. The country is now active.

Delete a Country

  1. Open the Global Menu (Global Menu). Navigate to Control PanelConfigurationCountries Management.

  2. Locate a country by scrolling through the list of countries. Use the search bar to locate a specific country quickly.

  3. Click Options (Options icon) on the Country and click Delete.

  4. Click OK to confirm and the country is deleted.

Warning

Make sure you intend to delete an entry before you click OK. The entry cannot be recovered once deleted.

Add a New Country

  1. Open the Global Menu (Global Menu). Navigate to Control PanelConfigurationCountries Management

  2. Click Add (Add icon) next to the search bar. A new page appears for adding a country.

    A new page appears for adding a country.

  3. Complete the form to add a new country. Name, Two-Letter ISO Code, Three-Letter ISO Code, and Number are required fields.

  4. Click Save, and the new country has been added.

Enable the Countries Management App

By default, the Countries Management App is hidden from the UI. To enable the UI,

  1. Add the following property to your portal-ext.properties file:

    feature.flag.LPS-122223=true

    If using Docker, use the following environment variable upon first startup:

    --env LIFERAY_FEATURE_PERIOD_FLAG_PERIOD__UPPERCASEL__UPPERCASEP__UPPERCASES__MINUS__NUMBER1__NUMBER2__NUMBER2__NUMBER2__NUMBER2__NUMBER3_=true

  2. Restart your server. The app now appears.

    See the Countries Management app in the UI.