Managing Countries
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.
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
-
Open the Global Menu (). Navigate to Control Panel → Configuration → Countries Management
-
Select a country by clicking its name, or click Options () on the country and click Edit. Use the search bar to locate a specific country quickly.
-
Make your desired changes and click Save. The country has now been modified.
Deactivate a Country
-
Open the Global Menu (). Navigate to Control Panel → Configuration → Countries Management.
-
Locate a country by scrolling through the list of countries. Use the search bar to locate a specific country quickly.
-
Click Options () on the Country and click Deactivate.
-
Click OK to confirm, and the country is deactivated.
Activate a Country
-
Open the Global Menu (). Navigate to Control Panel → Configuration → Countries Management
-
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.
-
Click Options () on the Country and click Activate. The country is now active.
Delete a Country
-
Open the Global Menu (). Navigate to Control Panel → Configuration → Countries Management.
-
Locate a country by scrolling through the list of countries. Use the search bar to locate a specific country quickly.
-
Click Options () on the Country and click Delete.
-
Click OK to confirm and the country is deleted.
Make sure you intend to delete an entry before you click OK. The entry cannot be recovered once deleted.
Add a New Country
-
Open the Global Menu (). Navigate to Control Panel → Configuration → Countries Management
-
Click Add () next to the search bar. A new page appears for adding a country.
-
Complete the form to add a new country. Name, Two-Letter ISO Code, Three-Letter ISO Code, and Number are required fields.
-
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,
-
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
-
Restart your server. The app now appears.