Environment specific properties for components
I see that we can use environment specific configuration using confg.runmodes for OSGI. Is there anyway to do for a components?
I see that we can use environment specific configuration using confg.runmodes for OSGI. Is there anyway to do for a components?
Are you interested in controlling the configurations that are managed on the component's definition node (things like component group or sling resource super type) or configurations for the custom code you write in the JSP/Sightly of the component? I agree with Scott that you can't do that for the component definition node, but if you interested in controlling the behavior of your custom code there are a variety of ways to do that:
There are multiple variations of those two approaches. Each of them has some pros and cons depending on exactly what kind of configurations you are trying manage.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.