Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Configuring a Liferay built-in OSGi Configuration object
			Hi,
We need to configure the JournalGroupServiceConfiguration object (see: https://github.com/liferay/liferay-portal/blob/4072a7e5766d6a5258832d16da9a8811c8f50edd/modules/apps/journal/journal-api/src/main/java/com/liferay/journal/configuration/JournalGroupServiceConfiguration.java ). The documentation (see: https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/making-your-applications-configurable ) explains how to make something similar, but not how to create the properties that get injected into such an object.
How do we inject the JournalGroupServiceConfiguration object with our own configuration properties?
Thanks,
CJ
		We need to configure the JournalGroupServiceConfiguration object (see: https://github.com/liferay/liferay-portal/blob/4072a7e5766d6a5258832d16da9a8811c8f50edd/modules/apps/journal/journal-api/src/main/java/com/liferay/journal/configuration/JournalGroupServiceConfiguration.java ). The documentation (see: https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/making-your-applications-configurable ) explains how to make something similar, but not how to create the properties that get injected into such an object.
How do we inject the JournalGroupServiceConfiguration object with our own configuration properties?
Thanks,
CJ
Christopher Virtucio:
If I understand you right: Easiest by finding the configuration in question in the configuration UI, configuring there and then export the values. The resulting file that you download can be inspected, changed and deployed to any Liferay instance. You'll just have to keep the name, as it's the key for this configuration
How do we inject the JournalGroupServiceConfiguration object with our own configuration properties?
			Hi Olaf,
Thanks for the response. That's what I saw in the documentation as well, but that seems to only be available for System Settings. The configuration we're trying to customize (see attached) is called email-article-added-enabled, which can be found under Side Navigation > Site's Name > Content > Web Content > Configuration. There's no Export Settings button for this page.
CJ
		Thanks for the response. That's what I saw in the documentation as well, but that seems to only be available for System Settings. The configuration we're trying to customize (see attached) is called email-article-added-enabled, which can be found under Side Navigation > Site's Name > Content > Web Content > Configuration. There's no Export Settings button for this page.
CJ
Attachments: