Composum Blog

various aspects of the Composum world

Sling Context Aware Configuration Editor

Nodes introduces a Sling Context Aware Configuration browser and editor, which is available as an additional tab in the JCR browser. It allows viewing the active configurations on content pages and supports creating and editing the properties of registered Ca Configurations.

Sling Context Aware Configurations are configurations that dynamically adapt based on the current context of a component or application in the Sling framework. They are important because they allow for personalized settings and behavior based on specific conditions, leading to a more flexible and efficient system. These configurations are also commonly used in Adobe Experience Manager (AEM) to tailor the user experience and content delivery based on different contexts.

As an alternative to the wcm.io configuration editor, the Composum Nodes browser now includes an editor for Context Aware Configurations. This works both on the various AEM versions as well as on "plain" Apache Sling if the bundles for context aware configuration are deployed.

Screenshot of the "effective configurations" view

The Composum Nodes Browser now includes a tab "Sling Context Aware Configuration" that will show the effective configurations when displayed on a /content node. It shows links to the configuration folders that are referenced by sling:configRef properties, and displays the effective values the properties of configurations and configuration collections have. If they have descriptions, those are displayed in tooltips and there might be links if they are inherited.

Screenshot of the "configuration types" view

On a /conf//sling:configs node all registered configurations are shown. If there are already subnodes for those, links are shown. If there are no subnodes for those, '+' buttons to add the corresponding subnode for that configuration is shown.

Screenshot of the "configuration edit" view

If you open the configuration nodes at /conf//sling:configs/* the configuration properties are listed. Clickign on a property opens an editor for the property as shown, customized for the declared type of the property.

Screenshot of the Nodes AI Query generator

Please notice that there is also now our first piece of AI in Composum Nodes. You can now generate suggestions for JCR Queries from a description of the query. You'll need to configure an OpenAI API key in the environment variable environment variable OPENAI_API_KEY or the "Composum Nodes AI Service" OSGI configuration.