Sling Context-Aware configuration is a very powerful mechanism to maintain “configuration” (whatever it might be) inside the repository, abstracting from it’s location and structure.
Here’s the list of blog posts which deal with Sling CA-Config. My recommendation is to read them in the provided order, as I tried to write them in the format of a tutorial.
-
- Content and configuration
- Sling Context-Aware configuration
- Sling Context-Aware configuration (part 2)
- Sling Context-Aware configuration (part 3): using a UI
- Sling Context-Aware Configuration (part 4) — using inheritance
- Sling Context-Aware configuration (part 5): thoughts on a production layout
- Sling Context-Aware configuration (part 6): replicate CA-Config
- Sling Context-Aware configuration (part 7): A conclusion
You can find the code examples I used on this tutorial on my personal github account at https://github.com/joerghoh/cqdump/tree/master/ca-config-example