Instance Settings YAML Configuration Reference
You can use an instance settings client extension to configure a wide variety of Liferay configurations. Each configuration is referenced by its PID (Persistent IDentity).
Use the client-extension.yaml
file to define an instance settings client extension.
Usage Details
This client-extension.yaml
file defines an instance settings client extension:
yoke-instance-settings:
type: instanceSettings
YAML Properties
These properties are specific to instance settings client extensions:
Name | Data Type | Default Value | Description |
---|---|---|---|
description | String | The client extension’s description. | |
name | String | (Derived) | The client extension’s name. |
pid | String | The PID (Persistent IDentity) of the configured instance setting (from the currently supported instance settings PIDs.) |
Additional Properties
Instance settings client extensions are accompanied by additional properties which are defined by the schema for the PID (a Java class).
The schema PID is defined in the annotation property @Meta.OCD.id
:
@Meta.OCD(
id = "com.liferay.foo.FooConfiguration"
)
Configure this property in a client extension definition like this:
yoke-instance-settings:
pid: com.liferay.foo.FooConfiguration
type: instanceSettings
Below are examples of the types of properties in the schema classes and how to include them in the client extension definition.
Scalar Properties
Given the scalar schema property definition below, in this case an int
(integer),
@Meta.AD(...)
public int invitationTokenExpirationTime();
Configure the invitationTokenExpirationTime
client extension property as a scalar YAML property:
yoke-instance-settings:
invitationTokenExpirationTime: 600
pid: com.liferay.foo.FooConfiguration
type: instanceSettings
Scalar properties include these data types:
int
(integer)short
long
byte
float
(decimal number)double
(double-precision decimal number)character
boolean
String
Array Property Example
Given the array schema property definition below,
@Meta.AD(...)
public String[] customTLDs();
Configure the customTLDs
client extension property as a YAML array:
yoke-instance-settings:
customTLDs:
- "foo.net"
- "*.other.com"
pid: com.liferay.foo.FooConfiguration
type: instanceSettings
LocalizedValuesMap Property Example
Given the LocalizedValuesMap
schema property definition below,
@Meta.AD(...)
public LocalizedValuesMap invitationEmailBody();
Configure the invitationEmailBody
client extension property as a YAML object, where each object key is a specific locale string:
yoke-instance-settings:
invitationEmailBody:
en_US: |
<p>
Follow the link below to set up your account:<br />
<a href="[$CREATE_ACCOUNT_URL$]">Create Account</a>
<br />
<font size="-2">The link will expire after 3 days.</font>
</p>
pid: com.liferay.foo.FooConfiguration
type: instanceSettings
Currently Supported Instance settings PIDs
Here are all of the PIDs that you can reference in an instance setting client extension, scoped by virtual instance or by site.
Virtual Instance Scoped PIDs
These PIDs allow for the configuration of virtual instance-scoped settings.
com.liferay.account.configuration.AccountEntryEmailConfiguration
com.liferay.account.configuration.AccountEntryEmailDomainsConfiguration
com.liferay.adaptive.media.image.internal.configuration.AMImageCompanyConfiguration
com.liferay.ai.creator.openai.configuration.AICreatorOpenAICompanyConfiguration
com.liferay.analytics.settings.configuration.AnalyticsConfiguration
com.liferay.asset.auto.tagger.google.cloud.natural.language.internal.configuration.GCloudNaturalLanguageAssetAutoTaggerCompanyConfiguration
com.liferay.asset.auto.tagger.opennlp.internal.configuration.OpenNLPDocumentAssetAutoTaggerCompanyConfiguration
com.liferay.asset.auto.tagger.internal.configuration.AssetAutoTaggerCompanyConfiguration
com.liferay.asset.categories.configuration.AssetCategoriesCompanyConfiguration
com.liferay.batch.engine.configuration.BatchEngineTaskCompanyConfiguration
com.liferay.change.tracking.configuration.CTSettingsConfiguration
com.liferay.change.tracking.web.internal.configuration.CTConfiguration
com.liferay.click.to.chat.web.internal.configuration.ClickToChatConfiguration
com.liferay.client.extension.type.configuration.CETConfiguration
com.liferay.commerce.payment.configuration.CommercePaymentEntryAuditConfiguration
com.liferay.commerce.payment.configuration.CommercePaymentEntryRefundTypeConfiguration
com.liferay.commerce.product.configuration.CPDefinitionOptionRelConfiguration
com.liferay.commerce.product.configuration.CPFriendlyURLConfiguration
com.liferay.commerce.qualifier.configuration.AccountEntryCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.AccountGroupCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.AddressCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.COREntryCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceChannelCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceCurrencyCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceDiscountCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceInventoryWarehouseCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceOrderTypeCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommercePaymentMethodGroupRelCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommercePriceListCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceShippingFixedOptionCommerceQualifierConfiguration
com.liferay.commerce.qualifier.configuration.CommerceTermEntryCommerceQualifierConfiguration
com.liferay.digital.signature.configuration.DigitalSignatureConfiguration
com.liferay.document.library.asset.auto.tagger.google.cloud.vision.internal.configuration.GCloudVisionAssetAutoTagProviderCompanyConfiguration
com.liferay.document.library.asset.auto.tagger.microsoft.cognitive.services.internal.configuration.MSCognitiveServicesAssetAutoTagProviderCompanyConfiguration
com.liferay.document.library.asset.auto.tagger.tensorflow.internal.configuration.TensorFlowImageAssetAutoTagProviderCompanyConfiguration
com.liferay.document.library.google.drive.configuration.DLGoogleDriveCompanyConfiguration
com.liferay.document.library.web.internal.configuration.CacheControlConfiguration
com.liferay.exportimport.configuration.ExportImportServiceConfiguration
com.liferay.flags.configuration.FlagsGroupServiceConfiguration
com.liferay.fragment.configuration.FragmentServiceConfiguration
com.liferay.fragment.entry.processor.freemarker.internal.configuration.FreeMarkerFragmentEntryProcessorConfiguration
com.liferay.fragment.web.internal.configuration.FragmentPortletConfiguration
com.liferay.friendly.url.configuration.FriendlyURLRedirectionConfiguration
com.liferay.frontend.js.web.internal.configuration.CustomDialogsSettingsConfiguration
com.liferay.journal.configuration.JournalServiceConfiguration
com.liferay.layout.content.page.editor.web.internal.configuration.PageEditorConfiguration
com.liferay.layout.locked.layouts.web.internal.configuration.LockedLayoutsCompanyConfiguration
com.liferay.layout.reports.web.internal.configuration.LayoutReportsGooglePageSpeedCompanyConfiguration
com.liferay.layout.seo.internal.configuration.LayoutSEOCompanyConfiguration
com.liferay.layout.set.prototype.configuration.LayoutSetPrototypeConfiguration
com.liferay.mail.outlook.auth.connector.provider.internal.configuration.MailOutlookAuthConnectorCompanyConfiguration
com.liferay.oauth2.provider.rest.internal.configuration.OAuth2InAssertionConfiguration
com.liferay.oauth2.provider.rest.internal.endpoint.authorize.configuration.AuthorizeScreenConfiguration
com.liferay.portal.crypto.hash.provider.bcrypt.internal.configuration.BCryptCryptoHashProviderConfiguration
com.liferay.portal.crypto.hash.provider.message.digest.internal.configuration.MessageDigestCryptoHashProviderConfiguration
com.liferay.portal.remote.cors.configuration.PortalCORSConfiguration
com.liferay.portal.search.elasticsearch7.configuration.DeepPaginationConfiguration
com.liferay.portal.search.rest.configuration.SearchSuggestionsCompanyConfiguration
com.liferay.portal.search.internal.configuration.SiteActivityAsahConfiguration
com.liferay.portal.search.internal.configuration.UserActivityAsahConfiguration
com.liferay.portal.security.sso.openid.connect.internal.configuration.OpenIdConnectProviderConfiguration
com.liferay.portal.security.configuration.BasicAuthHeaderSupportConfiguration
com.liferay.portal.security.auto.login.internal.basic.auth.header.configuration.BasicAuthHeaderAutoLoginConfiguration
com.liferay.portal.security.ldap.authenticator.configuration.LDAPAuthConfiguration
com.liferay.portal.security.ldap.configuration.LDAPServerConfiguration
com.liferay.portal.security.ldap.configuration.SystemLDAPConfiguration
com.liferay.portal.security.ldap.exportimport.configuration.LDAPExportConfiguration
com.liferay.portal.security.ldap.exportimport.configuration.LDAPImportConfiguration
com.liferay.portal.vulcan.internal.configuration.HeadlessAPICompanyConfiguration
com.liferay.portal.vulcan.internal.configuration.VulcanCompanyConfiguration
com.liferay.product.navigation.applications.menu.configuration.ApplicationsMenuInstanceConfiguration
com.liferay.product.navigation.personal.menu.configuration.PersonalMenuConfiguration
com.liferay.redirect.internal.configuration.RedirectURLConfiguration
com.liferay.segments.configuration.SegmentsCompanyConfiguration
com.liferay.segments.context.vocabulary.internal.configuration.SegmentsContextVocabularyCompanyConfiguration
com.liferay.sharing.internal.configuration.SharingCompanyConfiguration
com.liferay.social.activity.internal.configuration.SocialActivityCompanyConfiguration
com.liferay.staging.configuration.StagingConfiguration
com.liferay.translation.translator.aws.internal.configuration.AWSTranslatorConfiguration
com.liferay.translation.translator.azure.internal.configuration.AzureTranslatorConfiguration
com.liferay.translation.translator.deepl.internal.configuration.DeepLTranslatorConfiguration
com.liferay.translation.translator.google.cloud.internal.configuration.GoogleCloudTranslatorConfiguration
com.liferay.user.associated.data.web.internal.configuration.AnonymousUserConfiguration
com.liferay.users.admin.configuration.UserFileUploadsConfiguration
com.liferay.document.library.opener.onedrive.web.internal.configuration.DLOneDriveCompanyConfiguration
com.liferay.multi.factor.authentication.email.otp.configuration.MFAEmailOTPConfiguration
com.liferay.multi.factor.authentication.fido2.web.internal.configuration.MFAFIDO2Configuration
com.liferay.multi.factor.authentication.ip.address.internal.configuration.MFAIPAddressConfiguration
com.liferay.multi.factor.authentication.sample.internal.configuration.MFASampleConfiguration
com.liferay.multi.factor.authentication.timebased.otp.web.internal.configuration.MFATimeBasedOTPConfiguration
com.liferay.saml.runtime.configuration.SamlProviderConfiguration
com.liferay.search.experiences.configuration.SemanticSearchConfiguration
com.liferay.search.experiences.internal.configuration.IpstackConfiguration
com.liferay.search.experiences.internal.configuration.OpenWeatherMapConfiguration
com.liferay.segments.asah.connector.internal.configuration.SegmentsAsahCompanyConfiguration
com.liferay.sharepoint.rest.repository.internal.configuration.SharepointRepositoryConfiguration
Site Scoped PIDs
These PIDs allow for the configuration of site-scoped settings.
Specifying site settings in this bare form sets the default for all sites in the virtual instance.
com.liferay.accessibility.menu.web.internal.configuration.AccessibilityMenuConfiguration
com.liferay.account.internal.configuration.AccountEntryGroupConfiguration
com.liferay.ai.creator.openai.configuration.AICreatorOpenAIGroupConfiguration
com.liferay.asset.auto.tagger.internal.configuration.AssetAutoTaggerGroupConfiguration
com.liferay.blogs.configuration.BlogsGroupServiceConfiguration
com.liferay.bookmarks.configuration.BookmarksGroupServiceConfiguration
com.liferay.comment.configuration.CommentGroupServiceConfiguration
com.liferay.commerce.configuration.CommerceAccountGroupServiceConfiguration
com.liferay.commerce.configuration.CommerceOrderCheckoutConfiguration
com.liferay.commerce.configuration.CommerceOrderFieldsConfiguration
com.liferay.commerce.configuration.CommerceOrderImporterDateFormatConfiguration
com.liferay.commerce.configuration.CommerceShippingGroupServiceConfiguration
com.liferay.commerce.inventory.configuration.CommerceInventoryGroupConfiguration
com.liferay.commerce.media.internal.configuration.CommerceMediaDefaultImageConfiguration
com.liferay.commerce.payment.method.authorize.net.internal.configuration.AuthorizeNetGroupServiceConfiguration
com.liferay.commerce.payment.method.mercanet.internal.configuration.MercanetGroupServiceConfiguration
com.liferay.commerce.payment.method.money.order.internal.configuration.MoneyOrderGroupServiceConfiguration
com.liferay.commerce.payment.method.paypal.internal.configuration.PayPalGroupServiceConfiguration
com.liferay.commerce.product.configuration.CPDisplayLayoutConfiguration
com.liferay.commerce.shipping.engine.internal.configuration.FunctionCommerceShippingEngineConfiguration
com.liferay.commerce.tax.configuration.CommerceShippingTaxConfiguration
com.liferay.commerce.tax.engine.fixed.configuration.CommerceTaxByAddressTypeConfiguration
com.liferay.commerce.tax.engine.remote.internal.configuration.RemoteCommerceTaxConfiguration
com.liferay.cookies.configuration.CookiesPreferenceHandlingConfiguration
com.liferay.cookies.configuration.banner.CookiesBannerConfiguration
com.liferay.cookies.configuration.consent.CookiesConsentConfiguration
com.liferay.document.library.configuration.DLFileEntryConfiguration
com.liferay.document.library.internal.configuration.DLFileOrderConfiguration
com.liferay.document.library.internal.configuration.DLSizeLimitConfiguration
com.liferay.dynamic.data.mapping.configuration.DDMGroupServiceConfiguration
com.liferay.dynamic.data.mapping.data.provider.configuration.DDMDataProviderConfiguration
com.liferay.dynamic.data.mapping.form.web.internal.configuration.DDMFormWebConfiguration
com.liferay.fragment.configuration.DefaultInputFragmentEntryConfiguration
com.liferay.frontend.js.walkthrough.web.internal.configuration.WalkthroughConfiguration
com.liferay.frontend.js.web.internal.session.timeout.configuration.SessionTimeoutConfiguration
com.liferay.journal.configuration.JournalGroupServiceConfiguration
com.liferay.knowledge.base.configuration.KBGroupServiceConfiguration
com.liferay.layout.configuration.LockedLayoutsGroupConfiguration
com.liferay.layout.internal.configuration.LayoutCrawlerClientConfiguration
com.liferay.layout.reports.web.internal.configuration.LayoutReportsGooglePageSpeedGroupConfiguration
com.liferay.layout.seo.internal.configuration.LayoutSEOGroupConfiguration
com.liferay.login.web.internal.configuration.AuthLoginConfiguration
com.liferay.message.boards.moderation.configuration.MBModerationGroupConfiguration
com.liferay.object.storage.salesforce.configuration.SalesforceConfiguration
com.liferay.portal.security.content.security.policy.internal.configuration.ContentSecurityPolicyConfiguration
com.liferay.redirect.internal.configuration.RedirectPatternConfiguration
com.liferay.sharing.internal.configuration.SharingGroupConfiguration
com.liferay.site.configuration.MenuAccessConfiguration
com.liferay.social.activity.configuration.SocialActivityGroupServiceConfiguration
com.liferay.wiki.configuration.WikiGroupServiceConfiguration
com.liferay.commerce.punchout.configuration.PunchOutConfiguration
com.liferay.portal.reports.engine.console.configuration.ReportsGroupServiceEmailConfiguration