An AEM application has a Header and Footer authored on every page.
The customer asks for the following:
1. A centralized Header and Footer
2. The ability to create a variation for both the Header and Footer
3. Change the Header and Footer for specific time periods
4. The ability to restore a previous version for both the Header and Footer
What should the developer use to meet the requirements?
For AEM as a Cloud Service, the correct format to use for OSGi configuration files is .cfg.json. This format is specifically designed for use in AEM as a Cloud Service and supports both structured and unstructured data, making it versatile for various configuration needs.
Steps to create and deploy OSGi configurations in .cfg.json format:
Create Configuration File: Create a .cfg.json file in your codebase, typically under the apps directory, for example:
/apps/myproject/config/org.apache.sling.commons.log.LogManager.cfg.json
Define Configuration: Add your configuration properties in JSON format:
{
'org.apache.sling.commons.log.level': 'debug',
'org.apache.sling.commons.log.file': 'logs/error.log'
}
Deploy to AEM: Deploy the configuration along with your code package to AEM as a Cloud Service. The configuration will be applied automatically.
Dorinda
2 months agoMauricio
2 months agoHyman
3 months agoVerona
3 months agoFelicia
3 months agoEnola
3 months agoTracey
3 months agoKenneth
4 months agoBrandon
4 months agoQuentin
4 months agoJanine
4 months agoEttie
4 months agoRoyce
5 months agoJarvis
5 months agoGary
5 months agoHoa
5 months agoMelynda
5 months agoPeter
5 months agoOzell
10 months agoArleen
10 months agoLayla
9 months agoAbel
9 months agoStanton
10 months agoLouisa
10 months agoHector
11 months agoStefany
9 months agoRodolfo
10 months agoRoy
10 months agoLavonna
10 months agoVan
10 months agoNidia
10 months agoFelix
10 months agoLeslie
11 months agoWendell
10 months agoValentin
10 months agoAlverta
11 months agoChristoper
10 months agoMy
10 months agoLai
11 months agoGraham
11 months agoBok
11 months agoJettie
12 months agoMinna
12 months ago