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
5 months agoMauricio
5 months agoHyman
5 months agoVerona
6 months agoFelicia
6 months agoEnola
6 months agoTracey
6 months agoKenneth
6 months agoBrandon
7 months agoQuentin
7 months agoJanine
7 months agoEttie
7 months agoRoyce
7 months agoJarvis
8 months agoGary
8 months agoHoa
8 months agoMelynda
8 months agoPeter
8 months agoOzell
1 year agoArleen
1 year agoLayla
12 months agoAbel
1 year agoStanton
1 year agoLouisa
1 year agoHector
1 year agoStefany
1 year agoRodolfo
1 year agoRoy
1 year agoLavonna
1 year agoVan
1 year agoNidia
1 year agoFelix
1 year agoLeslie
1 year agoWendell
1 year agoValentin
1 year agoAlverta
1 year agoChristoper
1 year agoMy
1 year agoLai
1 year agoGraham
1 year agoBok
1 year agoJettie
1 year agoMinna
1 year ago